- Jan 28, 2009
-
-
Sebastian Redl authored
llvm-svn: 63150
-
- Jan 27, 2009
-
-
Anders Carlsson authored
If an input constraint refers to an output constraint, it should have the same constraint info as the output constraint. Fixes PR3417 llvm-svn: 63127
-
Chris Lattner authored
.def file for each library. This means that adding a diagnostic to sema doesn't require all the other libraries to be rebuilt. Patch by Anders Johnsen! llvm-svn: 63111
-
- Jan 26, 2009
-
-
Douglas Gregor authored
- When it's safe, ActionResult uses the low bit of the pointer for the "invalid" flag rather than a separate "bool" value. This keeps GCC from generating some truly awful code, for a > 3x speedup in the result-passing microbenchmark. - When DISABLE_SMART_POINTERS is defined, store an ActionResult within ASTOwningResult rather than an ASTOwningPtr. Brings the performance benefits of the above to smart pointers with DISABLE_SMART_POINTERS defined. Sadly, these micro-benchmark performance improvements don't seem to make much of a difference on Cocoa.h right now. However, they're harmless and might help with future optimizations. llvm-svn: 63061
-
Chris Lattner authored
optimize it to use the LiteralData when possible. llvm-svn: 63060
-
Sebastian Redl authored
llvm-svn: 63055
-
Sebastian Redl authored
llvm-svn: 63032
-
Eli Friedman authored
CompoundLiteralExpr so that there aren't any null pointers in the AST. llvm-svn: 62981
-
- Jan 25, 2009
-
-
Sebastian Redl authored
llvm-svn: 62971
-
Eli Friedman authored
llvm-svn: 62947
-
Eli Friedman authored
think this has any significant effects at the moment, but it could matter if we start constant-folding statement expressions like gcc does. llvm-svn: 62943
-
- Jan 24, 2009
-
-
Chris Lattner authored
llvm-svn: 62936
-
Sebastian Redl authored
Add serialization support for ReferenceType. llvm-svn: 62934
-
Chris Lattner authored
different than those for sizeof. Reject alignof(bitfield) like gcc does. llvm-svn: 62928
-
Chris Lattner authored
llvm-svn: 62927
-
Chris Lattner authored
llvm-svn: 62926
-
Anders Carlsson authored
llvm-svn: 62922
-
- Jan 23, 2009
-
-
Douglas Gregor authored
llvm-svn: 62884
-
Douglas Gregor authored
Make sure that we know a call is invalid if we dropped arguments. llvm-svn: 62882
-
Douglas Gregor authored
llvm-svn: 62876
-
-
Douglas Gregor authored
Make sure all of the isUnsigned flags line up when comparing initializer values, to really really fix PR clang/3377 llvm-svn: 62858
-
Douglas Gregor authored
Fixes PR clang/3377 llvm-svn: 62851
-
Douglas Gregor authored
special action, inside function prototype scope. This avoids confusion when we try to inject these parameters into the scope of the function body before the function itself has been added to the surrounding scope. Fixes <rdar://problem/6097326>. llvm-svn: 62849
-
Douglas Gregor authored
extension. Addresses clang PR/3371. llvm-svn: 62823
-
Douglas Gregor authored
initializers, so that we are within the appropriate subobject after we've processed a multi-designator designation. We're matching GCC and EDG's behavior on all examples I've found thus far. *Huge* thanks to Eli Friedman for pointing out my fundamental misunderstanding of "current object" in the C99 spec. llvm-svn: 62812
-
- Jan 22, 2009
-
-
-
Douglas Gregor authored
llvm-svn: 62766
-
Douglas Gregor authored
designated initializers. This implementation should cover all of the constraints in C99 6.7.8, including long, complex designations and computing the size of incomplete array types initialized with a designated initializer. Please see the new test-case and holler if you find cases where this doesn't work. There are still some wrinkles with GNU's anonymous structs and anonymous unions (it isn't clear how these should work; we'll just follow GCC's lead) and with designated initializers for the members of a union. I'll tackle those very soon. CodeGen is still nonexistent, and there's some leftover code in the parser's representation of designators that I'll also need to clean up. llvm-svn: 62737
-
- Jan 21, 2009
-
-
Steve Naroff authored
Fix Sema::Owned(ExprResult) to not use a ternary operator. Necessary to work around a Visual Studio compiler bug. Thanks to Doug Gregor for the suggestion. llvm-svn: 62723
-
Anders Carlsson authored
llvm-svn: 62666
-
Chris Lattner authored
this removes 4266 calls to LookupDecl. llvm-svn: 62662
-
Steve Naroff authored
No functionality change. llvm-svn: 62640
-
- Jan 20, 2009
-
-
Sebastian Redl authored
This allows more concise syntax when allocating an object using the ASTContext's allocator. Convert a few allocations to this operator to for test purposes. llvm-svn: 62623
-
Chris Lattner authored
caused by my previous commit. llvm-svn: 62613
-
Steve Naroff authored
When using a BumpPtrAllocator, this reduces malloc overhead from 2.2->1.9% (for Cocoa.h). At this point, malloc() has dropped the fourth most expensive routine (behind Preprocessor::HandleIdentifier()). llvm-svn: 62612
-
-
Steve Naroff authored
Add debug hook to DeclContext. llvm-svn: 62605
-
Chris Lattner authored
function DeclaratorChunk in common cases. This uses a fixed array in Declarator when it is small enough for the first function declarator chunk in a declarator. This eliminates all malloc/free traffic from DeclaratorChunk::getFunction when running on Cocoa.h except for five functions: signal/bsd_signal/sigset, which have multiple Function DeclChunk's, and CFUUIDCreateWithBytes/CFUUIDGetConstantUUIDWithBytes, which take more than 16 arguments. This patch was pair programmed with Steve. llvm-svn: 62599
-
Douglas Gregor authored
Rename DeclContext::insert to DeclContext::makeDeclVisibleInContext and document both it and DeclContext::addDecl properly llvm-svn: 62581
-