summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDecl.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Downgrade a number of FIXME asserts to ErrorUnsupported.Daniel Dunbar2008-08-291-13/+14
| | | | | | - Notably VLAs llvm-svn: 55544
* Handle static variables inside obj-c methods.Anders Carlsson2008-08-251-2/+6
| | | | llvm-svn: 55297
* Add preliminary (and probably broken) codegen support for C++ static ↵Anders Carlsson2008-08-221-1/+7
| | | | | | initializers. llvm-svn: 55180
* Add NeXT runtime support for generating methods.Daniel Dunbar2008-08-161-1/+4
| | | | | | | | | | | | | 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
* More #include cleaningDaniel Dunbar2008-08-111-0/+1
| | | | | | | | - 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
* More #include cleaningDaniel Dunbar2008-08-111-1/+1
| | | | | | - Remove internal uses of AST.h llvm-svn: 54628
* Basic support for volatile loads and stores. Stores the volatile Eli Friedman2008-06-131-1/+1
| | | | | | | | | | 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
* Make CodeGenFunction::EmitDecl() recognise CXXClass/CXXStruct/CXXUnion.Argyrios Kyrtzidis2008-06-091-0/+3
| | | | llvm-svn: 52162
* Don't crash emitting an initializer for a static local with union type. Eli Friedman2008-06-081-3/+7
| | | | | | | 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
* Emit debug information for global and static variables when -g is specified.Sanjiv Gupta2008-06-051-0/+9
| | | | llvm-svn: 51993
* Calculate alignment for local variables.Eli Friedman2008-05-311-2/+6
| | | | llvm-svn: 51826
* Emit parameter and local variable debug information with -g.Sanjiv Gupta2008-05-301-1/+22
| | | | llvm-svn: 51765
* Change uses of llvm::Type::isFirstClassType to use the newDan Gohman2008-05-221-2/+2
| | | | | | | | | | | | llvm::Type::isSingleValueType. Currently these two functions have the same behavior, but soon isFirstClassType will return true for struct and array types. Clang may some day want to use of isFirstClassType for some of these some day as an optimization, but it'll require some consideration. llvm-svn: 51446
* Add basic support for the pic-* target triples and add support forChris Lattner2008-05-081-12/+33
| | | | | | | | | targets that do not support recursion (and thus codegen stack variables as globals). Patch contributed by Alireza Moshtaghi! llvm-svn: 50844
* Generate code for annotation attributes.Nate Begeman2008-04-191-7/+15
| | | | llvm-svn: 49951
* Remove FileVarDecl and BlockVarDecl. They are replaced by ↵Steve Naroff2008-04-151-7/+8
| | | | | | | | VarDecl::isBlockVarDecl() and VarDecl::isFileVarDecl(). This is a fairly mechanical/large change. As a result, I avoided making any changes/simplifications that weren't directly related. I did break two Analysis tests. I also have a couple FIXME's in UninitializedValues.cpp. Ted, can you take a look? If the bug isn't obvious, I am happy to dig in and fix it (since I broke it). llvm-svn: 49748
* remove the Decl::getCanonicalType() method.Chris Lattner2008-04-061-4/+3
| | | | llvm-svn: 49295
* Since isComplexType() no longer returns true for _Complex integers, the codeChris Lattner2008-04-041-1/+1
| | | | | | generator needs to call isAnyComplexType(). This fixes PR1960. llvm-svn: 49220
* Codegen assignment to self correctly, patch by David Chisnall!Chris Lattner2008-04-041-2/+2
| | | | llvm-svn: 49201
* Make a major restructuring of the clang tree: introduce a top-levelChris Lattner2008-03-151-0/+163
lib dir and move all the libraries into it. This follows the main llvm tree, and allows the libraries to be built in parallel. The top level now enforces that all the libs are built before Driver, but we don't care what order the libs are built in. This speeds up parallel builds, particularly incremental ones. llvm-svn: 48402
OpenPOWER on IntegriCloud