- Feb 20, 2009
-
-
Mike Stump authored
llvm-svn: 65089
-
- Feb 19, 2009
-
-
Douglas Gregor authored
llvm-svn: 64984
-
- Feb 17, 2009
-
-
Daniel Dunbar authored
IRgen no longer relies on isConstantInitializer, instead we just try to emit the constant. If that fails then in C we emit an error unsupported (this occurs when Sema accepted something that it doesn't know how to fold, and IRgen doesn't know how to emit) and in C++ we emit a guarded initializer. This ends up handling a few more cases, because IRgen was actually able to emit some of the constants Sema accepts but can't Evaluate(). For example, PR3398. llvm-svn: 64780
-
- Feb 13, 2009
-
-
Daniel Dunbar authored
llvm-svn: 64502
-
Daniel Dunbar authored
- PR3566 llvm-svn: 64492
-
Anders Carlsson authored
llvm-svn: 64445
-
Douglas Gregor authored
ABI to the CodeGen library. Since C++ code-generation is so incomplete, we can't exercise much of this mangling code. However, a few smoke tests show that it's doing the same thing as GCC. When C++ codegen matures, we'll extend the ABI tester to verify name-mangling as well, and complete the implementation here. At this point, the major client of name mangling is in the uses of the new "overloadable" attribute in C, which allows overloading. Any "overloadable" function in C (or in an extern "C" block in C++) will be mangled the same way that the corresponding C++ function would be mangled. llvm-svn: 64413
-
Daniel Dunbar authored
llvm-svn: 64411
-
- Feb 10, 2009
-
-
Sanjiv Gupta authored
Function parameters for PIC16 are like local variables. So use the keyword ".auto." to mangle their names. The working of PIC16AsmPrinter relies on that keyword currently. llvm-svn: 64198
-
- Feb 09, 2009
-
-
Anders Carlsson authored
Use the new cleanup infrastructure for VLAs. The next iteration of patches will remove the old Obj-C EH cleanup code. llvm-svn: 64161
-
- Feb 08, 2009
-
-
Anders Carlsson authored
llvm-svn: 64052
-
- Feb 07, 2009
-
-
Mike Stump authored
llvm-svn: 64014
-
- Feb 05, 2009
-
-
Anders Carlsson authored
llvm-svn: 63879
-
- Feb 03, 2009
-
-
Sanjiv Gupta authored
Specify external linkage for such globals so that llvm optimizer do not assume there values initialized as zero. llvm-svn: 63636
-
- Jan 25, 2009
-
-
Eli Friedman authored
accurately states what the function is trying to do and how it is different from Expr::isEvaluatable. Also get rid of a parameter that is both unused and inaccurate. llvm-svn: 62951
-
- Jan 16, 2009
-
-
Chris Lattner authored
"logical" location, refer to the "instantiation" location. llvm-svn: 62316
-
- Dec 21, 2008
-
-
Eli Friedman authored
simple test that actually does VLA codegen. Note that despite the fact that the alloca isn't in the entry block, it should dominate all uses; this is guaranteed by the restrictions on goto into VLA scope in C99. llvm-svn: 61291
-
- Dec 20, 2008
-
-
Anders Carlsson authored
llvm-svn: 61290
-
Anders Carlsson authored
Emit the size even if the declared type is a variably modified type. This lets us handle void f(int n) { int (*a)[n]; printf("size: %d\n", sizeof(*a)); } llvm-svn: 61285
-
Anders Carlsson authored
llvm-svn: 61284
-
Anders Carlsson authored
llvm-svn: 61283
-
- Dec 13, 2008
-
-
Chris Lattner authored
llvm-svn: 60989
-
- Dec 12, 2008
-
-
Anders Carlsson authored
llvm-svn: 60943
-
- Nov 24, 2008
-
-
Chris Lattner authored
NamedDecl::getNameAsString() to make it more explicit. llvm-svn: 59937
-
Chris Lattner authored
assert if the name is not an identifier. Update callers to do the right thing and avoid this method in unsafe cases. This also fixes an objc warning that was missing a space, and migrates a couple more to taking IdentifierInfo and QualTypes instead of std::strings. llvm-svn: 59936
-
- Nov 17, 2008
-
-
Douglas Gregor authored
representing the names of declarations in the C family of languages. DeclarationName is used in NamedDecl to store the name of the declaration (naturally), and ObjCMethodDecl is now a NamedDecl. llvm-svn: 59441
-
- Nov 10, 2008
-
-
Chris Lattner authored
using MachineModuleInfo. This runs at about the same speed as the old code, but fixes a bunch of bugs and is simpler and shorter. llvm-svn: 58971
-
- Oct 31, 2008
-
-
Sanjiv Gupta authored
etc more generic. For some targets, long may not be equal to pointer size. For example: PIC16 has int as i16, ptr as i16 but long as i32. Also fixed a few build warnings in assert() functions in CFRefCount.cpp, CGDecl.cpp, SemaDeclCXX.cpp and ParseDeclCXX.cpp. llvm-svn: 58501
-
- Oct 17, 2008
-
-
Daniel Dunbar authored
simplifies clients. Also, add assert that RegionStack is empty when the CGDebugInfo is destroyed. llvm-svn: 57684
-
- Oct 15, 2008
-
-
Argyrios Kyrtzidis authored
Instead of using two sets of Decl kinds (Struct/Union/Class and CXXStruct/CXXUnion/CXXClass), use one 'Record' and one 'CXXRecord' Decl kind and make tag kind a property of TagDecl. Cleans up the code a bit and better reflects that Decl class structure. llvm-svn: 57541
-
- Sep 17, 2008
-
-
Daniel Dunbar authored
- No functionality change. llvm-svn: 56269
-
- Aug 29, 2008
-
-
Daniel Dunbar authored
- Notably VLAs llvm-svn: 55544
-
- Aug 25, 2008
-
-
Anders Carlsson authored
llvm-svn: 55297
-
- Aug 22, 2008
-
-
Anders Carlsson authored
llvm-svn: 55180
-
- Aug 16, 2008
-
-
Daniel Dunbar authored
Change CodeGenFunction::EmitParmDecl to take either a ParmVarDecl or an ImplicitParamDecl. Drop hasAggregateLLVMType from CodeGenModule.cpp (use version in CodeGenFunction). Change the Objective-C method generation to use EmitParmDecl for implicit parameters. llvm-svn: 54838
-
- Aug 11, 2008
-
-
Daniel Dunbar authored
- Drop {Decl.h,DeclObjC.h,IdentifierTable.h} from Expr.h - Moved Sema::getCurMethodDecl() out of line (dependent on ObjCMethodDecl via dyn_cast). llvm-svn: 54629
-
Daniel Dunbar authored
- Remove internal uses of AST.h llvm-svn: 54628
-
- Jun 14, 2008
-
-
Eli Friedman authored
qualifier in the lvalue, and changes lvalue loads/stores to honor the volatile flag. Places which need some further attention are marked with FIXMEs. Patch by Cédric Venet. llvm-svn: 52264
-
- Jun 10, 2008
-
-
Argyrios Kyrtzidis authored
llvm-svn: 52162
-
- Jun 08, 2008
-
-
Eli Friedman authored
This fix just makes sure to construct the global with the appropriate type, and fixes up the one user this affects to compensate. llvm-svn: 52084
-