Chris Lattner
6e29892430
add a missed bitfield instcombine.
...
llvm-svn: 130137
2011-04-25 18:44:26 +00:00
Douglas Gregor
90609aa394
Minor tweak to avoid having to dig through canonical types multiple times when checking a qualification conversion
...
llvm-svn: 130136
2011-04-25 18:40:17 +00:00
Greg Clayton
dc5eb693bd
Put plug-ins into the correct directories as they were incorrectly located
...
in a Utility directory.
llvm-svn: 130135
2011-04-25 18:36:36 +00:00
Johnny Chen
6b2a27c777
Fix test failure for '-A i386'.
...
llvm-svn: 130134
2011-04-25 18:20:52 +00:00
Johnny Chen
2b14d9b3f6
Update startstr argument of self.expect() to "a.out`sum(int, int)" to respond to recent change.
...
llvm-svn: 130133
2011-04-25 17:40:47 +00:00
Francois Pichet
aa48352f82
Add Windows SEH keywords.
...
llvm-svn: 130132
2011-04-25 17:23:15 +00:00
Akira Hatanaka
0e7ee666b7
Lower BlockAddress node when relocation-model is static.
...
llvm-svn: 130131
2011-04-25 17:10:45 +00:00
Devang Patel
734f2218ac
A dbg.declare may not be in entry block, even if it is referring to an incoming argument. However, It is appropriate to emit DBG_VALUE referring to this incoming argument in entry block in MachineFunction.
...
llvm-svn: 130129
2011-04-25 16:33:52 +00:00
Douglas Gregor
b90f5185b6
When Sema::ClassifyName() finds an invalid ivar reference, return an
...
invalid expression rather than the far-more-generic "error". Fixes a
mild regression in error recovery uncovered by the GCC testsuite.
llvm-svn: 130128
2011-04-25 15:05:41 +00:00
Benjamin Kramer
ba446cc12a
Make tests more useful.
...
lit needs a linter ...
llvm-svn: 130126
2011-04-25 10:12:01 +00:00
Chandler Carruth
9b73c8e293
Remove some hard coded CR-LFs. Some of these were the entire files, one of
...
these was just one line of a file. Explicitly set the eol-style property on the
files to try and ensure this fix stays.
llvm-svn: 130125
2011-04-25 07:11:23 +00:00
Chandler Carruth
bc0f9aeac3
Remove some more hard CR-LF lines. These were particularly weird as they were
...
only a few lines of the file. Also set their properties to have explicitly
native eol sytle.
llvm-svn: 130124
2011-04-25 07:09:43 +00:00
Chandler Carruth
6a3f25e58d
Set the native EOL property on this now that I've fixed it. Fixing some other
...
instances of this momentarily.
llvm-svn: 130123
2011-04-25 06:55:34 +00:00
John Wiegley
f9f6584e95
t/clang/expr-traits
...
Patch authored by David Abrahams.
These two expression traits (__is_lvalue_expr, __is_rvalue_expr) are used for
parsing code that employs certain features of the Embarcadero C++ compiler.
llvm-svn: 130122
2011-04-25 06:54:41 +00:00
Chandler Carruth
03b77b37d6
Remove hard coded dos line endings, let subversion translate them on
...
update.
Despite the diff, nothing but line endings changed here.
llvm-svn: 130121
2011-04-25 06:34:35 +00:00
Duncan Sands
56ca6292dc
Fix comment typo. Noticed by Liu.
...
llvm-svn: 130120
2011-04-25 06:21:43 +00:00
Nico Weber
adf8ba98e7
Let clang detect gcc triple on Ubuntu Natty. Patch by Thomas Jablin.
...
llvm-svn: 130119
2011-04-25 03:17:35 +00:00
Eli Friedman
5792e02fa1
Missing bit of r130117.
...
llvm-svn: 130118
2011-04-24 22:31:41 +00:00
Eli Friedman
ea7b85bfe0
PR4304: Add warning for designators in strict c89 mode.
...
llvm-svn: 130117
2011-04-24 22:14:22 +00:00
Rafael Espindola
a076199e71
Simplify the logic. Noticed by aKor.
...
llvm-svn: 130116
2011-04-24 19:55:34 +00:00
Rafael Espindola
5c54ecc9af
Synchronize the conditions for producing a .cfi_startproc and a .cfi_endproc.
...
Fixes PR9787.
llvm-svn: 130115
2011-04-24 19:00:34 +00:00
Benjamin Kramer
d47a12a4e2
Use template magic to make dumping of vectors slightly less fragile.
...
No intended functionality change.
llvm-svn: 130114
2011-04-24 17:44:50 +00:00
Ken Dyck
bb2c24008f
Convert size and alignment variables to CharUnits in EmitAggregateCopy(). No
...
change in functionality intended.
llvm-svn: 130113
2011-04-24 17:37:26 +00:00
Ken Dyck
239a3357af
Convert type size and alignment to CharUnits in CheckAggExprForMemSetUse().
...
No change in functionality intended.
llvm-svn: 130112
2011-04-24 17:25:32 +00:00
Ken Dyck
df94cb7dbe
Convert the return type of GetNumNonZeroBytesInInit() to CharUnits. No
...
change in functionality intended.
llvm-svn: 130111
2011-04-24 17:17:56 +00:00
Ken Dyck
3b4bd9a164
Eliminate some literal 8s by converting size variables in EmitGCMove() and
...
EmitFinalDestCopy() to CharUnits. No change in functionality intended.
llvm-svn: 130110
2011-04-24 17:08:00 +00:00
Ken Dyck
a8094505e2
Replace calls to ASTContext::getTypeInfo() with calls to
...
ASTContext::getTypeSize() when only the size part is used. No change in
functionality intended.
llvm-svn: 130109
2011-04-24 17:02:38 +00:00
Ken Dyck
272b6fa0f0
Simplify AppendTailPadding() by converting its parameter to CharUnits. No
...
change in functionality intended.
llvm-svn: 130108
2011-04-24 16:53:44 +00:00
Ken Dyck
7a0b19f978
Eliminate literal 8s from LayoutUnionField by converting NumBytesToAppend to
...
CharUnits. No change in functionality intended.
llvm-svn: 130107
2011-04-24 16:47:33 +00:00
Ken Dyck
345a6de9b4
Eliminate literal 8s from LayoutBitField(), converting variables to
...
CharUnits or replacing the 8s with char align. No change in functionality
intended.
llvm-svn: 130106
2011-04-24 16:40:29 +00:00
Sebastian Redl
010288f7c1
Set the correct anonymous namespace (must be last reopening), and behave correctly in the presence of the ever-annoying linkage specifications.
...
llvm-svn: 130105
2011-04-24 16:28:21 +00:00
Sebastian Redl
fa1f370b7d
Fix adding an anonymous namespace in a chained PCH to a namespace from a previous PCH.
...
Fix anonymous namespaces in PCH.
llvm-svn: 130104
2011-04-24 16:28:13 +00:00
Sebastian Redl
ab238a7d18
Synthesizing the definition of an implicit member is an AST modification, so notify any mutation listeners of it. This fixes a crasher in chained PCH, where an implicit destructor in a PCH gets a definition in a chained PCH, which is then lost. However, any further use of the destructor would cause its definition to be regenerated in the final file, hiding the bug.
...
llvm-svn: 130103
2011-04-24 16:28:06 +00:00
Sebastian Redl
f830df4e9d
On reading DeclContexts from PCH, check for visible updates even if the context was empty in the original version. Also, if there are any, tell the context that it has external visible decls. This fixes the problem that a namespace that was empty in the initial PCH (could also happen if the initial PCH didn't include any std header but caused implicit creation of namespace std, e.g. due to implicit declaration of a virtual destructor) never found any declaration declared in *any* chained PCH. Very ugly when the chained PCH includes all that std stuff, as the errors were effectively the same as not including std headers.
...
llvm-svn: 130102
2011-04-24 16:27:54 +00:00
Sebastian Redl
83f3b859ab
Make the invalid declarator recovery when parsing members work the same as when parsing global decls. It's still rather broken (skipping much too far when the declarator belongs to a function definition), but at least not so broken as to mismatch braces. Tested by the removal of the fixme in the template test case.
...
llvm-svn: 130101
2011-04-24 16:27:48 +00:00
Sebastian Redl
ddb3ab494d
Give MultiplexConsumer.h a header guard.
...
llvm-svn: 130100
2011-04-24 16:27:41 +00:00
Sebastian Redl
e2d93b154f
Fix PathDiagnosticClients.h header guard. (Case error)
...
llvm-svn: 130099
2011-04-24 16:27:36 +00:00
Sebastian Redl
14afaf0093
Store the full list of pending instantiations in a chained PCH. Previously we attempted to store only new pending instantiations, but our filter was incorrect, dropping implicit instantiations of class template members. It's just not worth coming up with a complex filter that is correct, when the only cost is PCH files that are a few hundred bytes (at most) larger.
...
llvm-svn: 130098
2011-04-24 16:27:30 +00:00
Sebastian Redl
5519ff9d4e
Fix Target/ARM/Thumb1FrameLowering.h header guard.
...
llvm-svn: 130097
2011-04-24 15:47:01 +00:00
Sebastian Redl
1b86ea80bb
Give MC/MCDisassembler/Disassembler.h a header guard.
...
llvm-svn: 130096
2011-04-24 15:46:56 +00:00
Sebastian Redl
b8a62aa3c9
Give SplitKit.h a header guard.
...
llvm-svn: 130095
2011-04-24 15:46:51 +00:00
Sebastian Redl
76e34f0175
Give ImmutableIntervalMap.h an include guard.
...
llvm-svn: 130094
2011-04-24 15:46:46 +00:00
Jay Foad
f7adb3204e
Fix an assert to check exactly what it says.
...
llvm-svn: 130093
2011-04-24 14:30:00 +00:00
Mikhail Glushenkov
acb5f8ecf7
Add a TODO.
...
llvm-svn: 130092
2011-04-24 14:17:41 +00:00
Mikhail Glushenkov
06655d4a61
Regenerate.
...
llvm-svn: 130091
2011-04-24 14:17:37 +00:00
Mikhail Glushenkov
f08209382a
Remove all references to plugins from the LLVMC docs.
...
llvm-svn: 130090
2011-04-24 14:17:32 +00:00
Francois Pichet
dd876125df
Downgrade unnecessary "typename" from error to warning in Microsoft mode.
...
This fixes 1 error when parsing MSVC 2008 headers with clang.
Must "return true;" even if it is a warning because the rest of the code path assumes that SS is set to something. The parser will get back on its feet and continue parsing the rest of the declaration correctly so it is not a problem.
llvm-svn: 130088
2011-04-24 11:24:13 +00:00
Ken Dyck
27337a8800
Convert AccessInfo::AccessAlignment to CharUnits. No change in functionality
...
intended.
llvm-svn: 130087
2011-04-24 10:13:17 +00:00
Jay Foad
dbf81d8ddf
PR9214: Convert the DIBuilder API to use ArrayRef.
...
llvm-svn: 130086
2011-04-24 10:11:03 +00:00
Ken Dyck
f76759c6fa
Convert CGBitFieldInfo::FieldByteOffset to CharUnits. No change in
...
functionality intended.
llvm-svn: 130085
2011-04-24 10:04:59 +00:00