#
9f735528 |
| 13-Oct-2009 |
Devang Patel <dpatel@apple.com> |
Remove extra white space line.
llvm-svn: 83979
|
#
7468489d |
| 13-Oct-2009 |
Devang Patel <dpatel@apple.com> |
Do not check use_empty() before invoking replaceAllUsesWith(). Let replaceAllUsesWith() adjust VHs even though there are no uses.
llvm-svn: 83978
|
#
abd5b90e |
| 13-Oct-2009 |
Benjamin Kramer <benny.kra@googlemail.com> |
Simplify pointer creation with the new Type::getInt*Ptr methods.
llvm-svn: 83964
|
#
2bb27f53 |
| 11-Oct-2009 |
Anders Carlsson <andersca@mac.com> |
Move the vtable builder to CGVtable.cpp, general cleanup.
llvm-svn: 83798
|
#
a18ed9b1 |
| 08-Oct-2009 |
Anders Carlsson <andersca@mac.com> |
If a global initializer has a non-trivial constructor or destructor, we never want to defer generation of it, even if it is declared static.
With this change we're finally able to compile and run th
If a global initializer has a non-trivial constructor or destructor, we 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
show more ...
|
#
ff971e8b |
| 07-Oct-2009 |
Anders Carlsson <andersca@mac.com> |
Add a MangleContext and pass it to all mangle functions. It will be used for keeping state, such as identifiers assigned to anonymous structs as well as scope encoding.
llvm-svn: 83442
|
#
916c0067 |
| 05-Oct-2009 |
Mike Stump <mrs@apple.com> |
Fix thinko and simplify.
llvm-svn: 83342
|
#
3472ae5b |
| 05-Oct-2009 |
Mike Stump <mrs@apple.com> |
Ensure we have atleast 2-byte alignment for member functions.
llvm-svn: 83337
|
#
c5e153c5 |
| 05-Oct-2009 |
Mike Stump <mrs@apple.com> |
Respect alignments better.
llvm-svn: 83328
|
#
dde0fee8 |
| 05-Oct-2009 |
Benjamin Kramer <benny.kra@googlemail.com> |
Use new predicates for some type equality tests.
llvm-svn: 83303
|
#
4fa53427 |
| 01-Oct-2009 |
John McCall <rjmccall@apple.com> |
Anonymous namespaces, sema + codegen. A lot of semantics are still broken, apparently because using directives aren't quite working correctly.
llvm-svn: 83184
|
#
649a17e8 |
| 23-Sep-2009 |
Anders Carlsson <andersca@mac.com> |
Handle namespace aliases.
llvm-svn: 82644
|
#
b879c3c1 |
| 22-Sep-2009 |
Daniel Dunbar <daniel@zuster.org> |
Revert "Switch a few clients over to StringLiteral::getString.", this is breaking some projects, but I don't have a test case yet.
llvm-svn: 82539
|
#
5de27daf |
| 22-Sep-2009 |
Daniel Dunbar <daniel@zuster.org> |
Switch a few clients over to StringLiteral::getString. - Switching all of them out-of-my-current-scope-of-interest, sorry.
llvm-svn: 82515
|
#
9dd450bb |
| 21-Sep-2009 |
John McCall <rjmccall@apple.com> |
Change all the Type::getAsFoo() methods to specializations of Type::getAs(). Several of the existing methods were identical to their respective specializations, and so have been removed entirely. Se
Change all the Type::getAsFoo() methods to specializations of Type::getAs(). Several of the existing methods were identical to their respective specializations, and so have been removed entirely. Several more 'leaf' optimizations were introduced.
The getAsFoo() methods which imposed extra conditions, like getAsObjCInterfacePointerType(), have been left in place.
llvm-svn: 82501
show more ...
|
#
ff0553ec |
| 14-Sep-2009 |
Daniel Dunbar <daniel@zuster.org> |
Fix subtle bug in generating LLVM function declarations for builtin functions.
The decl wasn't being passed down, which meant that function attributes were not being set correctly. This is particula
Fix subtle bug in generating LLVM function declarations for builtin functions.
The decl wasn't being passed down, which meant that function attributes were not being set correctly. This is particularly important for ARM, since it wants to override the calling convention. Instead we would emit the builtin with the wrong calling convention, and instcombine would come along and merrily shred all the calls to it. :)
llvm-svn: 81756
show more ...
|
#
299d76e9 |
| 13-Sep-2009 |
Douglas Gregor <dgregor@apple.com> |
Rework the way we determine whether an externally visible symbol is generated for an inline function definition, taking into account C99 and GNU inline/extern inline semantics. This solution is simpl
Rework the way we determine whether an externally visible symbol is generated for an inline function definition, taking into account C99 and GNU inline/extern inline semantics. This solution is simpler, cleaner, and fixes PR4536.
llvm-svn: 81670
show more ...
|
#
0ef3479c |
| 12-Sep-2009 |
Daniel Dunbar <daniel@zuster.org> |
Change CodeGenModule::ConstructTypeAttributes to return the calling convention to use, and allow the ABI implementation to override the calling convention.
llvm-svn: 81593
|
#
16618f21 |
| 12-Sep-2009 |
Douglas Gregor <dgregor@apple.com> |
Remove unnecessary ASTContext parameters from isMain and isExternC
llvm-svn: 81589
|
#
bbaeca4f |
| 11-Sep-2009 |
Daniel Dunbar <daniel@zuster.org> |
Set the calling convention based on the CGFunctionInfo.
llvm-svn: 81582
|
#
ecf9bf01 |
| 10-Sep-2009 |
Anders Carlsson <andersca@mac.com> |
GlobalDecl doesn't have an explicit constructor anymore.
llvm-svn: 81481
|
#
38988d7e |
| 10-Sep-2009 |
Anders Carlsson <andersca@mac.com> |
Add stricter GlobalDecl constructors.
llvm-svn: 81480
|
#
11289f42 |
| 09-Sep-2009 |
Mike Stump <mrs@apple.com> |
Remove tabs, and whitespace cleanups.
llvm-svn: 81346
|
#
34ec2ef1 |
| 04-Sep-2009 |
Douglas Gregor <dgregor@apple.com> |
Improve the AST representation and semantic analysis for extern templates. We now distinguish between an explicit instantiation declaration and an explicit instantiation definition, and know not to i
Improve the AST representation and semantic analysis for extern templates. We now distinguish between an explicit instantiation declaration and an explicit instantiation definition, and know not to instantiate explicit instantiation declarations. Unfortunately, there is some remaining confusion w.r.t. instantiation of out-of-line member function definitions that causes trouble here.
llvm-svn: 81053
show more ...
|
#
d94105a1 |
| 04-Sep-2009 |
Douglas Gregor <dgregor@apple.com> |
Don't generate any code for an explicit call to a trivial destructor.
Now that parsing, semantic analysis, and (I think) code generation of pseudo-destructor expressions and explicit destructor cal
Don't generate any code for an explicit call to a trivial destructor.
Now that parsing, semantic analysis, and (I think) code generation of pseudo-destructor expressions and explicit destructor calls works, update the example-dynarray.cpp test to destroy the objects it allocates and update the test to actually compile + link. The code seems correct, but the Clang-compiled version dies with a malloc error. Time to debug!
llvm-svn: 81025
show more ...
|