summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/global-init.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Teach the constant expr evaluator about derived-to-base casts when no ↵Anders Carlsson2010-10-311-0/+16
| | | | | | virtual bases are involved. Fixes PR5974. llvm-svn: 117868
* Test for rdar://problem/8073696.John McCall2010-08-121-0/+11
| | | | llvm-svn: 110907
* Do a very simple pass over every function we emit to infer whether we canJohn McCall2010-08-031-1/+1
| | | | | | | mark it nounwind based on whether it contains any non-nounwind calls. <rdar://problem/8087431> llvm-svn: 110163
* Emit global destructors even if the destroyed object has no initializers or hasJohn McCall2010-07-301-2/+17
| | | | | | | | an initializer requiring temporary object disposal. Fixes rdar:://problem/8246444. llvm-svn: 109849
* When deferring the emission of declarations with initializers in C++, rememberJohn McCall2010-07-151-0/+22
| | | | | | | the order they appeared in the translation unit. If they get emitted, put them in their proper order. Fixes rdar://problem/7458115 llvm-svn: 108477
* When creating functions to run global initializers and destructors, mark themJohn McCall2010-07-061-1/+4
| | | | | | as nounwind in -fno-exceptions. Fixes rdar://problem/8090834. llvm-svn: 107639
* Fix test.Anders Carlsson2010-06-091-1/+2
| | | | llvm-svn: 105668
* C++: Add support for -fno-use-cxa-atexit.Daniel Dunbar2010-03-201-1/+1
| | | | | | | | - So much typing, so little gain... Also, rename the __cxx_global_initialization function just to match llvm-gcc. llvm-svn: 99039
* Fix the bug that was breaking self-host, and re-land the static ctor fixes.Anders Carlsson2010-02-051-0/+5
| | | | llvm-svn: 95400
* Revert r95363 and r95375, which broke self-host.Douglas Gregor2010-02-051-5/+0
| | | | llvm-svn: 95389
* If a global initializer has a non-trivial destructor it can't be emitted as ↵Anders Carlsson2010-02-051-0/+5
| | | | | | a constant (even if it has a trivial constructor). llvm-svn: 95363
* Codegen CXXConstructExprs with trivial constructors as constants.John McCall2010-02-021-0/+10
| | | | | | Eliminates a lot of spurious global initializers, fixing PR6205. llvm-svn: 95077
* Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.Daniel Dunbar2009-12-151-1/+1
| | | | | | | | | - This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). llvm-svn: 91446
* If a global initializer has a non-trivial constructor or destructor, we ↵Anders Carlsson2009-10-081-2/+8
| | | | | | | | | | | | | | | | | | | never want to defer generation of it, even if it is declared static. With this change we're finally able to compile and run the (infamous) #include <string> #include <iostream> int main(int argc, char **argv) { std::cout << "Hello, World" << std::endl; } $ clang hello.cpp -lstdc++ -o hello $ ./hello Hello, World llvm-svn: 83559
* Port test over to FileCheck.Anders Carlsson2009-10-081-3/+3
| | | | llvm-svn: 83558
* Use the inbounds variant of getelementptr for common pointer arithmetic.Dan Gohman2009-08-121-1/+1
| | | | llvm-svn: 78756
* Add support for global initializers.Anders Carlsson2009-08-081-0/+10
llvm-svn: 78515
OpenPOWER on IntegriCloud