summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDeclCXX.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Rename __tcf_ to __cxx_global_array_dtor. Remove the ↵Anders Carlsson2010-06-081-3/+2
| | | | | | UniqueAggreDestructorCount from CodeGenFunction and let LLVM handle uniquing the internal functions instead. llvm-svn: 105648
* Move GenerateCXXAggrDestructorHelper to CGDeclCXX.cpp where it belongs.Anders Carlsson2010-06-081-0/+37
| | | | llvm-svn: 105647
* Simplify GenerateCXXAggrDestructorHelper.Anders Carlsson2010-06-081-4/+3
| | | | llvm-svn: 105646
* When initializing thread-safe statics, put the call toDouglas Gregor2010-05-161-8/+64
| | | | | | | | | | | | | __cxa_guard_abort along the exceptional edge into (in effect) a nested "try" that rethrows after aborting. Fixes PR7144 and the remaining Boost.ProgramOptions failures, along with the regressions that r103880 caused. The crucial difference between this and r103880 is that we now follow LLVM's little dance with the llvm.eh.exception and llvm.eh.selector calls, then use _Unwind_Resume_or_Rethrow to rethrow. llvm-svn: 103892
* Revert r103880 (thread-safe static initialization w/ exceptions),Douglas Gregor2010-05-161-26/+8
| | | | | | because it's causing strange linker errors. Unfixes PR7144. llvm-svn: 103890
* When initializing thread-safe statics, put the call toDouglas Gregor2010-05-151-8/+26
| | | | | | | | __cxa_guard_abort along the exceptional edge into (in effect) a nested "try" that rethrows after aborting. Fixes PR7144 and the remaining Boost.ProgramOptions failures. llvm-svn: 103880
* For thread-safe static initialization of local statics withDouglas Gregor2010-05-051-33/+48
| | | | | | | | destructors, place the __cxa_atexit call after the __cxa_guard_release call, mimicking GCC/LLVM-GCC behavior. Noticed while debugging something related. llvm-svn: 103088
* Emit the globals, metadata, etc. associated with static variables even whenJohn McCall2010-05-041-0/+3
| | | | | | | | they're unreachable. This matters because (if they're POD, or if this is C) the scope containing the variable might be reachable even if the variable isn't. Fixes PR7044. llvm-svn: 103052
* emit dtors with the right calling convention in -fno-use-cxa-atexitChris Lattner2010-04-261-3/+8
| | | | | | mode. llvm-svn: 102377
* C++: Add support for -fno-use-cxa-atexit.Daniel Dunbar2010-03-201-16/+73
| | | | | | | | - So much typing, so little gain... Also, rename the __cxx_global_initialization function just to match llvm-gcc. llvm-svn: 99039
* IRgen: Inline GenerateCXXGlobal[VarDecl]InitFunc into sole caller.Daniel Dunbar2010-03-201-30/+15
| | | | llvm-svn: 99038
* Add support for threadsafe statics, and make them the default (matching gcc).Anders Carlsson2010-02-061-22/+85
| | | | | | Daniel, I'd appreciate a review of the driver/cc1 parts. llvm-svn: 95508
* Revert the new reference binding code; I came up with a way simpler solution ↵Anders Carlsson2010-02-031-2/+2
| | | | | | for the reference binding bug that is preventing self-hosting. llvm-svn: 95223
* global variable that binds reference to a non-lvalue reprotedFariborz Jahanian2010-01-251-2/+7
| | | | | | as NYI now. llvm-svn: 94453
* Fix a code gen. bug involving compiling global references.Fariborz Jahanian2010-01-251-2/+2
| | | | | | (fixes radar 7574896). llvm-svn: 94434
* Fix for PR5967: Make const-marking for LLVM globals correct for cases requiringEli Friedman2010-01-081-6/+30
| | | | | | | run-time initialization, and emit run-time initializers aggresively to avoid ordering issues with deferred globals. llvm-svn: 92976
* Actually store the pointer into the global variable, spotted by Eli.Anders Carlsson2009-12-101-2/+5
| | | | llvm-svn: 91036
* Handle emitting static variables that have reference type.Anders Carlsson2009-12-101-1/+4
| | | | llvm-svn: 91027
* Separate generating code for static variables and global variables.Anders Carlsson2009-12-101-33/+59
| | | | llvm-svn: 91026
* Move more decl related functions to CGDeclCXX.cppAnders Carlsson2009-12-101-0/+117
| | | | llvm-svn: 91012
* Add CGDeclCXX.cpp and move EmitCXXGlobalVarDeclInit there.Anders Carlsson2009-12-101-0/+62
llvm-svn: 91006
OpenPOWER on IntegriCloud