- Apr 27, 2011
-
-
-
Fariborz Jahanian authored
// rdar://8823265 related. llvm-svn: 130311
-
Douglas Gregor authored
pack expansion. Fixes PR9452. llvm-svn: 130310
-
Douglas Gregor authored
llvm-svn: 130307
-
Manuel Klimek authored
This patch simplifies writing of standalone Clang tools. As an example, we add clang-check, a tool that runs a syntax only frontend action over a .cc file. When you integrate this into your favorite editor, you get much faster feedback on your compilation errors, thus reducing your feedback cycle especially when writing new code. The tool depends on integration of an outstanding patch to CMake to work which allows you to always have a current compile command database in your cmake output directory when you set CMAKE_EXPORT_COMPILE_COMMANDS. llvm-svn: 130306
-
Rafael Espindola authored
non private symbol. This will be use for handling foo: .cfi_startproc ... On OS X where we have to create a foo.eh symbol. llvm-svn: 130305
-
Lenny Maiorani authored
More accurately model realloc() when the size argument is 0. realloc() with a size of 0 is equivalent to free(). The memory region should be marked as free and not used again. Unit tests f2_realloc_0(), f6_realloc(), and f7_realloc() contributed by Marshall Clow <mclow.lists@gmail.com>. Thanks! llvm-svn: 130303
-
Duncan Sands authored
effective in avoiding recomputation of LCSSA form; the widespread use of instsimplify (which looks through phi nodes) means it was not preserving LCSSA form anyway; and instcombine is no longer scheduled in the middle of the loop passes so this doesn't matter anymore. llvm-svn: 130301
-
Chandler Carruth authored
a destination pointer that points to a non-POD type. This can flag such horrible bugs as overwriting vptrs when a previously POD structure is suddenly given a virtual method, or creating objects that crash on practically any use by zero-ing out a member when its changed from a const char* to a std::string, etc. llvm-svn: 130299
-
John McCall authored
fully defined. Somehow this escaped notice for a very long time. llvm-svn: 130298
-
Douglas Gregor authored
ClassifyName() builds a primary expression, generate one of these annotation tokens rather than jumping into the parser. llvm-svn: 130297
-
Eric Christopher authored
been running into it. llvm-svn: 130296
-
Douglas Gregor authored
llvm-svn: 130295
-
Andrew Trick authored
llvm-svn: 130294
-
Douglas Gregor authored
creating a type-annotation token rather than jumping into the declaration parsing. llvm-svn: 130293
-
Ted Kremenek authored
Allow 'Environment::getSVal()' to allow an optional way for checkers to do a direct lookup to values bound to expressions, without resulting to lazy logic. This is critical for the OSAtomicChecker that does a simulated load on any arbitrary expression. llvm-svn: 130292
-
Chandler Carruth authored
Apologies. llvm-svn: 130291
-
Francois Pichet authored
Add support for Microsoft __interface keyword. An __interface class is basically a normal class containing just pure virtual functions. No urgency to enforce that restriction in clang for now, so make __interface an "class" alias. llvm-svn: 130290
-
Argyrios Kyrtzidis authored
in NullStmt. llvm-svn: 130289
-
Douglas Gregor authored
in the classification of template names and using declarations. We now properly typo-correct the leading identifiers in statements to types, templates, values, etc. As an added bonus, this reduces the number of lookups required for disambiguation. llvm-svn: 130288
-
Anders Carlsson authored
When compiling with -fno-threadsafe-statics, guard variables for globals with internal linkage don't have to be i64, i8 works just fine! llvm-svn: 130286
-
Douglas Gregor authored
llvm-svn: 130285
-
Douglas Gregor authored
looking at the context and the correction and using a custom diagnostic. Also, enable some Fix-It tests that were somewhat lamely disabled. llvm-svn: 130283
-
Douglas Gregor authored
llvm-svn: 130280
-
Nick Lewycky authored
C89 doesn't have an inline keyword. llvm-svn: 130279
-
Eli Friedman authored
length. (I'm planning to use this to implement byval.) llvm-svn: 130274
-
Rafael Espindola authored
step towards using .cfi_* on OS X. llvm-svn: 130273
-
Eli Friedman authored
rdar://problem/9303306 . llvm-svn: 130272
-
Andrew Trick authored
Fix for PR9633 [indvars] Assertion `isa<X>(Val) && "cast<Ty>() argument of incompatible type!"' failed. Added a type check in ScalarEvolution::computeSCEVAtScope to handle the case in which operands of an AddRecExpr in the current scope are folded. llvm-svn: 130271
-
John McCall authored
instance methods to have bound-member type. Fixing that broke __unknown_anytype, which I've in turn fixed. llvm-svn: 130266
-
Douglas Gregor authored
determine which is a better conversion to "void*", be sure to perform the comparison using the safe-for-id ASTContext::canAssignObjCInterfaces() rather than the asserts-with-id ASTContext::canAssignObjCInterfaces(). Fixes <rdar://problem/9327203>. llvm-svn: 130259
-
Johnny Chen authored
for lldb objects which can contain other lldb objects. Examples are: SBTarget contains SBModule, SBModule contains SBSymbols, SBProcess contains SBThread, SBThread contains SBFrame, etc. llvm-svn: 130258
-
Fariborz Jahanian authored
non-bitfield members are ignore. // rdar://8823265 wip llvm-svn: 130257
-
Greg Clayton authored
Switch the EmulateInstruction to use the standard RegisterInfo structure that is defined in the lldb private types intead of passing the reg kind and reg num everywhere. EmulateInstruction subclasses also need to provide RegisterInfo structs given a reg kind and reg num. This eliminates the need for the GetRegisterName() virtual function and allows more complete information to be passed around in the read/write register callbacks. Subclasses should always provide RegiterInfo structs with the generic register info filled in as well as at least one kind of register number in the RegisterInfo.kinds[] array. llvm-svn: 130256
-
Douglas Gregor authored
the qualifiers (e.g., GC qualifiers) on the type we're converting from, rather than just blindly adopting the qualifiers of the type we're converting to or dropping qualifiers altogether. As an added bonus, properly diagnose GC qualifier mismatches to eliminate a crash in the overload resolution failure diagnostics. llvm-svn: 130255
-
Johnny Chen authored
llvm-svn: 130254
-
Johnny Chen authored
llvm-svn: 130253
-
Johnny Chen authored
llvm-svn: 130252
-
Johnny Chen authored
llvm-svn: 130251
-
Chris Lattner authored
an earlier load could be widened to encompass a later load. For example, if we see: X = load i8* P, align 4 Y = load i8* (P+3), align 1 and we have a 32-bit native integer type, we can widen the former load to i32 which then makes the second load redundant. GVN can't actually do anything with this load/load relation yet, so this isn't testable, but it is the next step to resolving PR6627, and a fairly general class of "merge neighboring loads" missed optimizations. llvm-svn: 130250
-