- Feb 22, 2011
-
-
NAKAMURA Takumi authored
mingw-w64's i128 tweak should be done with x86_64-mingw32. llvm-svn: 126186
-
David Chisnall authored
The instance size of a metaclass should be the size of a class. This is not, in fact, 0, even for very small classes. (GNU runtime) llvm-svn: 126161
-
- Feb 21, 2011
-
-
John McCall authored
for ?: on record types. llvm-svn: 126113
-
- Feb 20, 2011
-
-
Richard Smith authored
This fixes PR 8738, 9060 and 9132. llvm-svn: 126069
-
Anders Carlsson authored
llvm-svn: 126062
-
Peter Collingbourne authored
llvm-svn: 126060
-
- Feb 19, 2011
-
-
Douglas Gregor authored
attribute, we also care about those with the "constructor" attribute. Fixes PR6521. llvm-svn: 126055
-
Rafael Espindola authored
llvm-svn: 126050
-
John McCall authored
without defining them. This should be an error, but I'm paranoid about "uses" that end up not actually requiring a definition. I'll revisit later. Also, teach IR generation to not set internal linkage on variable declarations, just for safety's sake. Doing so produces an invalid module if the variable is not ultimately defined. Also, fix several places in the test suite where we were using internal functions without definitions. llvm-svn: 126016
-
Devang Patel authored
llvm-svn: 125990
-
- Feb 18, 2011
-
-
Chris Lattner authored
turn off all builtin optimizations. llvm-svn: 125979
-
Chris Lattner authored
target triple. This would be a decent place to add -fno-builtin info for example. llvm-svn: 125971
-
Fariborz Jahanian authored
scalar types. // rdar://7761305 llvm-svn: 125946
-
John McCall authored
_Block_object_* flags; it's just BLOCK_HAS_COPY_DISPOSE or not. Also, we don't need to chase forwarding pointers prior to calling _Block_object_dispose; _Block_object_dispose in fact already does this. rdar://problem/9006315 llvm-svn: 125823
-
Peter Collingbourne authored
This removes the final dependency edge from any lib outside of CodeGen to core. As a result we can, and do, trim the dependency on core from libclang, PrintFunctionNames, the unit tests and c-index-test. While at it, review and trim other unneeded dependencies. llvm-svn: 125820
-
Peter Collingbourne authored
llvm-svn: 125819
-
Chris Lattner authored
bugs from other clients that don't expect to see a LabelDecl in a DeclStmt, but if so they should be easy to fix. This implements most of PR3429 and rdar://8287027 llvm-svn: 125817
-
- Feb 17, 2011
-
-
Chris Lattner authored
by Heikki Kultala! llvm-svn: 125784
-
John McCall authored
llvm-svn: 125761
-
John McCall authored
class and to bind the shared value using OpaqueValueExpr. This fixes an unnoticed problem with deserialization of these expressions where the deserialized form would lose the vital pointer-equality trait; or rather, it fixes it because this patch also does the right thing for deserializing OVEs. Change OVEs to not be a "temporary object" in the sense that copy elision is permitted. This new representation is not totally unawkward to work with, but I think that's really part and parcel with the semantics we're modelling here. In particular, it's much easier to fix things like the copy elision bug and to make the CFG look right. I've tried to update the analyzer to deal with this in at least some obvious cases, and I think we get a much better CFG out, but the printing of OpaqueValueExprs probably needs some work. llvm-svn: 125744
-
NAKAMURA Takumi authored
No one uses *-mingw64. mingw-w64 is represented as {i686|x86_64}-w64-mingw32. llvm-svn: 125742
-
NAKAMURA Takumi authored
llvm-svn: 125741
-
Chris Lattner authored
LabelDecl and LabelStmt. There is a 1-1 correspondence between the two, but this simplifies a bunch of code by itself. This is because labels are the only place where we previously had references to random other statements, causing grief for AST serialization and other stuff. This does cause one regression (attr(unused) doesn't silence unused label warnings) which I'll address next. This does fix some minor bugs: 1. "The only valid attribute " diagnostic was capitalized. 2. Various diagnostics printed as ''labelname'' instead of 'labelname' 3. This reduces duplication of label checking between functions and blocks. Review appreciated, particularly for the cindex and template bits. llvm-svn: 125733
-
Nick Lewycky authored
llvm-svn: 125694
-
- Feb 16, 2011
-
-
Devang Patel authored
If preprocessed token introduced empty filename then use main translation unit's filename for debug info entries. llvm-svn: 125672
-
John McCall authored
llvm-svn: 125662
-
John McCall authored
llvm-svn: 125661
-
Devang Patel authored
This patch rewrites r125142. llvm-svn: 125632
-
John McCall authored
Nobody ever gave me a clear reason for why we were doing this, and now it's apparently causing serious problems, so if *not* having this causes problems, we get to solve them the right way this time. llvm-svn: 125627
-
Devang Patel authored
C struct arguments do not need this adjustment. This fixes 7 failures in callfuncs.exp from gdb testsuite. llvm-svn: 125615
-
- Feb 15, 2011
-
-
John McCall authored
llvm-svn: 125605
-
Fariborz Jahanian authored
ends up in the text segment. // rdar://8825235. llvm-svn: 125585
-
Douglas Gregor authored
"used". Fixes <rdar://problem/8684363>. llvm-svn: 125579
-
John McCall authored
- Have CGM precompute a number of commonly-used types - Have CGF copy that during initialization instead of recomputing them - Use TBAA info when initializing a parameter variable - Refactor the scalar ++/-- code llvm-svn: 125562
-
John McCall authored
a zero constant for a complete class. rdar://problem/8424975 To make this happen, track the field indexes for virtual bases in the complete object. I'm curious whether we might be better off making CGRecordLayoutBuilder *much* more reliant on ASTRecordLayout; we're currently duplicating an awful lot of the ABI layout logic. llvm-svn: 125555
-
Ken Dyck authored
functionality intended. llvm-svn: 125549
-
Chris Lattner authored
llvm-svn: 125538
-
- Feb 14, 2011
-
-
Chris Lattner authored
builders unhappy. llvm-svn: 125505
-
Chris Lattner authored
llvm-svn: 125488
-
Peter Collingbourne authored
FP_CONTRACT pragmas. Patch originally by ARM. llvm-svn: 125475
-