Michael J. Spencer
2eb0a6fafa
Fix spelling!
...
llvm-svn: 120167
2010-11-26 04:16:20 +00:00
Michael J. Spencer
f13f442b1a
Fix Whitespace.
...
llvm-svn: 120166
2010-11-26 04:16:08 +00:00
Jakob Stoklund Olesen
a12095d26d
Move tree navigation to a new Path class that doesn't have to be a template.
...
The path also holds a reference to the root node, and that allows important
iterator accessors like start() and stop() to have no conditional code. (When
the compiler is clever enough to remove it.)
llvm-svn: 120165
2010-11-26 01:39:40 +00:00
Duncan Sands
7904068186
Remove explicit uses of -emit-llvm, the test infrastructure adds it
...
automatically. Use -S with llvm-gcc rather than -c, so tests can
work when llvm-gcc is really dragonegg (which can output IR with -S
but not -c). Yes, dragonegg supports objective-c++ (poorly though).
llvm-svn: 120164
2010-11-25 21:48:20 +00:00
Duncan Sands
8182ac6a05
Remove explicit uses of -emit-llvm, the test infrastructure adds it
...
automatically. Use -S with llvm-gcc rather than -c, so tests can
work when llvm-gcc is really dragonegg (which can output IR with -S
but not -c). Yes, dragonegg supports objective-c (poorly though).
llvm-svn: 120163
2010-11-25 21:46:07 +00:00
Oscar Fuentes
e1c6a67df6
Bump required cmake version on CMake.html.
...
llvm-svn: 120162
2010-11-25 21:41:48 +00:00
Duncan Sands
e6c974b230
Use -S rather than -c for the benefit of dragonegg.
...
llvm-svn: 120161
2010-11-25 21:41:35 +00:00
Duncan Sands
5fe97a0490
Remove explicit uses of -emit-llvm, the test infrastructure adds it
...
automatically. Use -S with llvm-gcc rather than -c, so tests can
work when llvm-gcc is really dragonegg (which can output IR with -S
but not -c).
llvm-svn: 120160
2010-11-25 21:39:17 +00:00
Duncan Sands
0be0ae625d
Judging from the comment, the system assembler is supposed to assemble
...
the output of this test. Since it was producing bitcode, that clearly
wasn't happening! Have it produce target assembler and assemble that
instead.
llvm-svn: 120159
2010-11-25 21:26:21 +00:00
Duncan Sands
b32d19de6a
Remove explicit uses of -emit-llvm, the test infrastructure adds it
...
automatically. Use -S with llvm-gcc rather than -c, so tests can
work when llvm-gcc is really dragonegg (which can output IR with -S
but not -c).
llvm-svn: 120158
2010-11-25 21:24:35 +00:00
Duncan Sands
2b5243d096
Dragonegg cannot output bitcode, only human readable IR, so use -S rather
...
than -c.
llvm-svn: 120157
2010-11-25 21:21:59 +00:00
Duncan Sands
c78fbf9877
Use LLVMCC_EMITIR_FLAG rather than hard-coding "-emit-llvm".
...
llvm-svn: 120156
2010-11-25 21:19:52 +00:00
Duncan Sands
1bc5303aed
Using LLVMCC_EMITIR_FLAG rather than hard-coding -emit-llvm
...
(dragonegg cannot use -emit-llvm so needs a different flag
to everyone else).
llvm-svn: 120155
2010-11-25 21:14:55 +00:00
Rafael Espindola
596402a87c
Add C++ header path for openSUSE 11.4.
...
Patch by İsmail Dönmez.
llvm-svn: 120154
2010-11-25 18:51:59 +00:00
Benjamin Kramer
90b5b68535
Hide a bunch of symbols.
...
llvm-svn: 120153
2010-11-25 18:29:30 +00:00
Duncan Sands
0787bc37c4
It seems inconsistent to have LLVMCC_EMITIR_FLAG and
...
LLVMGCC_DISABLEOPT_FLAGS, one with CC in it, the other
with GCC. Rename LLVMGCC_DISABLEOPT_FLAGS to
LLVMCC_DISABLEOPT_FLAGS.
llvm-svn: 120151
2010-11-25 17:57:43 +00:00
Benjamin Kramer
336e02e89b
SDep is POD-like. Shave off a few bytes from SUnit by moving a member around.
...
llvm-svn: 120150
2010-11-25 17:50:19 +00:00
Duncan Sands
606d5c0424
Initial support for being able to specify the llvm-gcc to use like this:
...
--with-llvmgcc="gcc-4.5 -fplugin=dragonegg.so"
llvm-svn: 120149
2010-11-25 17:47:42 +00:00
Benjamin Kramer
faec0b3c74
OpaquePtrs are POD-like.
...
llvm-svn: 120148
2010-11-25 17:32:32 +00:00
Rafael Espindola
7c2acd022e
Use multiple 0x66 prefixes so that all nops up to 15 bytes are a single instruction.
...
llvm-svn: 120147
2010-11-25 17:14:16 +00:00
Benjamin Kramer
aef5bd049f
Namespacify.
...
llvm-svn: 120146
2010-11-25 16:42:51 +00:00
Rafael Espindola
f8e127eaf6
Factor some code to parseSectionFlags and fix the default type of a section.
...
llvm-svn: 120145
2010-11-25 15:32:56 +00:00
Zhongxing Xu
16278859e8
For CFGAutomaticObjDtor, the type may be reference type, e.g., const A &c = A();
...
Also apply some new coding style.
llvm-svn: 120144
2010-11-25 06:35:14 +00:00
Zhongxing Xu
33f13595c9
handle CXXFunctionalCastExpr in visitLValue and Environment.
...
llvm-svn: 120143
2010-11-25 03:18:57 +00:00
Zhongxing Xu
7514633c26
Improve comments.
...
llvm-svn: 120142
2010-11-25 02:52:17 +00:00
Zhongxing Xu
be83a3aeca
Add dump method.
...
llvm-svn: 120141
2010-11-25 02:07:24 +00:00
Anders Carlsson
1f95ee3016
Begin work on actually laying out virtual bases.
...
llvm-svn: 120140
2010-11-25 01:59:35 +00:00
Michael J. Spencer
d4a894d62f
system_error: Even more unsupported error numbers :(.
...
llvm-svn: 120139
2010-11-25 01:53:59 +00:00
Anders Carlsson
61ad508bce
Update Xcode project.
...
llvm-svn: 120138
2010-11-25 01:52:05 +00:00
Anders Carlsson
60a6263ee8
Move isNearlyEmpty out into the ASTContext so it can be called from CodeGen as well.
...
llvm-svn: 120137
2010-11-25 01:51:53 +00:00
Peter Collingbourne
640cdae167
Basic: add log2{,f,l}, round{,f,l} builtins
...
llvm-svn: 120136
2010-11-25 01:15:00 +00:00
Nick Lewycky
ef4f456866
Tie DefineVTablesUsed() in with recursive function instantiation so that we emit
...
a useful template instantiation stack. Fixes PR8640.
This also causes a slight change to where the "instantianted from" note shows up
in truly esoteric cases (see the change to test/SemaCXX/destructor.cpp), but
that isn't directly the fault of this patch.
llvm-svn: 120135
2010-11-25 00:35:20 +00:00
Anders Carlsson
19bda8af16
Remove the PrimaryBaseInfo class.
...
llvm-svn: 120134
2010-11-24 23:20:19 +00:00
Anders Carlsson
7f95cd1817
Rename RecordLayout::getPrimaryBaseWasVirtual to isPrimaryBaseVirtual.
...
llvm-svn: 120133
2010-11-24 23:12:57 +00:00
Anders Carlsson
cadbc463e2
Move code off the primary base info iterator. No functionality change.
...
llvm-svn: 120132
2010-11-24 23:04:03 +00:00
Anders Carlsson
5adde29d86
Use the newly added function in ASTRecordLayoutBuilder.
...
llvm-svn: 120131
2010-11-24 22:55:48 +00:00
Anders Carlsson
abb3b21b3b
Fix typo.
...
llvm-svn: 120130
2010-11-24 22:55:29 +00:00
Anders Carlsson
4131f00a1f
Add CXXRecordDecl::getIndirectPrimaryBases.
...
llvm-svn: 120129
2010-11-24 22:50:27 +00:00
Nick Lewycky
b8de00ee07
Treat a call of function pointer like a load of the pointer when considering
...
whether the pointer can be replaced with the global variable it is a copy of.
Fixes PR8680.
llvm-svn: 120126
2010-11-24 22:04:20 +00:00
Rafael Espindola
9f75d5df0b
Behave a bit more like gnu as and use the symbol (instead of the section)
...
for any relocation to a symbol defined in a tls section.
llvm-svn: 120121
2010-11-24 21:57:39 +00:00
Anders Carlsson
72b1968d92
Simplify code.
...
llvm-svn: 120118
2010-11-24 21:53:50 +00:00
Anders Carlsson
0c75b49dc1
Fix a (probably very old) regression where we weren't using the typedef name for anonymous tag types.
...
llvm-svn: 120113
2010-11-24 21:05:09 +00:00
Anders Carlsson
0e4dfebe63
Revert r120110. We don't want to call ConvertType from within getCGRecordLayout.
...
llvm-svn: 120112
2010-11-24 20:22:04 +00:00
Michael J. Spencer
26f628d57f
80 col.
...
llvm-svn: 120111
2010-11-24 20:07:14 +00:00
Anders Carlsson
449bbc5bde
Use ConvertType instead of ConvertTagDeclType, since ConvertType will assign a name to the type.
...
llvm-svn: 120110
2010-11-24 20:05:21 +00:00
Anders Carlsson
6277615cbb
Simplify code.
...
llvm-svn: 120109
2010-11-24 19:57:04 +00:00
Anders Carlsson
c5bcaa373b
Fix build.
...
llvm-svn: 120108
2010-11-24 19:52:29 +00:00
Anders Carlsson
63e0f2050f
Make CodeGenTypes::getCGRecordLayout compute the layout lazily if it doesn't exist. This matches ASTContext::getASTRecordLayout and is less confusing.
...
llvm-svn: 120107
2010-11-24 19:51:04 +00:00
Anders Carlsson
36e2fa8209
CGRecordLayout types are always struct types.
...
llvm-svn: 120106
2010-11-24 19:37:16 +00:00
Michael J. Spencer
02dd5544c4
google test depends on Support.
...
llvm-svn: 120105
2010-11-24 19:35:15 +00:00