summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/global-init.cpp
Commit message (Collapse)AuthorAgeFilesLines
* 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