David Chisnall
10d2ded910
Don't crash if the AST doesn't have a sensible ObjC id type.
...
llvm-svn: 130500
2011-04-29 14:10:35 +00:00
Benjamin Kramer
6708499b6d
This is done.
...
llvm-svn: 130499
2011-04-29 14:09:57 +00:00
Andrew Trick
65266ed4d7
Combine thumb2-ror tests.
...
llvm-svn: 130498
2011-04-29 14:02:41 +00:00
NAKAMURA Takumi
2277ab2ae6
docs/doxygen.css: Tweak padding on memdoc.
...
llvm-svn: 130493
2011-04-29 09:59:12 +00:00
Chandler Carruth
c37485e6cb
Relax the non-POD memset warning to use the less restrictive C++11
...
definition of POD. Specifically, this allows certain non-aggregate
types due to their data members being private.
The representation of C++11 POD testing is pretty gross. Any suggestions
for improvements there are welcome. Especially the name
'isCXX11PODType()' seems truly unfortunate.
llvm-svn: 130492
2011-04-29 09:46:08 +00:00
Francois Pichet
c867975776
r130381 follow up: accept __uuidof expression for template argument reference.
...
llvm-svn: 130491
2011-04-29 09:08:14 +00:00
Francois Pichet
dbad1d1599
Unbreak the MSVC build:
...
- unistd.h doesn't exist with MSVC
- inline must be __inline in Microsoft C
- atexit cannot take a function declared as void f(), must be void f(void).
llvm-svn: 130490
2011-04-29 08:56:07 +00:00
Benjamin Kramer
f0e3f04470
Balance parentheses.
...
llvm-svn: 130489
2011-04-29 08:41:23 +00:00
Sebastian Redl
2ac2c725e0
Add a decl update when a static data member of a class template is instantiated in a different PCH than its containing class. Otherwise we get double definition errors. Fixes a Boost.MPL problem that affects Boost.Accumulators and probably a lot more of Boost.
...
llvm-svn: 130488
2011-04-29 08:19:30 +00:00
Sebastian Redl
b00047a475
Use std::vector for ASTReader's ASTBuffers, instead of std::deque.
...
llvm-svn: 130487
2011-04-29 08:19:19 +00:00
Sebastian Redl
bc9a20949f
Use -emit-llvm-only as suggested by Argyrios.
...
llvm-svn: 130486
2011-04-29 08:19:03 +00:00
Benjamin Kramer
16f18ed7b5
InstCombine: turn (C1 << A) << C2) into (C1 << C2) << A)
...
Fixes PR9809.
llvm-svn: 130485
2011-04-29 08:15:41 +00:00
Andreas Simbuerger
0593f53295
Add e-mail to credits file.
...
llvm-svn: 130484
2011-04-29 07:54:20 +00:00
Chandler Carruth
efd5671a27
Don't assume that the AST methods will only be invoked on C++ types.
...
Teaches isLiteralType and isTrivialType to behave plausibly and most
importantly not crash on normal RecordDecls.
Sadly I have no real way to test this. I stumbled onto it by
mis-implementing a warning.
llvm-svn: 130483
2011-04-29 07:47:42 +00:00
Hongbin Zheng
e1bd40cfbd
Partial support test polly for out of tree build.
...
llvm-svn: 130482
2011-04-29 07:34:54 +00:00
Tobias Grosser
ca3bef8461
JSONExport: Some cleanups
...
llvm-svn: 130481
2011-04-29 06:52:36 +00:00
Tobias Grosser
b4c99fae86
CREDITS: Replace LLVM with Polly
...
llvm-svn: 130480
2011-04-29 06:42:42 +00:00
Tobias Grosser
b6a7c8d76b
Add a converter from jscop to iscc input
...
llvm-svn: 130478
2011-04-29 06:29:20 +00:00
Tobias Grosser
b0927ea141
JSONExporter: Remove unused variable
...
llvm-svn: 130477
2011-04-29 06:27:09 +00:00
Tobias Grosser
758053788b
Add initial version of Polly
...
This version is equivalent to commit ba26ebece8f5be84e9bd6315611d412af797147e
in the old git repository.
llvm-svn: 130476
2011-04-29 06:27:02 +00:00
Chris Lattner
011eae7512
clean up after Sean's r127646 patch.
...
llvm-svn: 130475
2011-04-29 05:40:18 +00:00
Chris Lattner
1d0c25756e
use the MachineInstrBuilder operator-> to simplify some code.
...
There are probably more instances of this floating around.
llvm-svn: 130474
2011-04-29 05:24:29 +00:00
Chris Lattner
6d6cb40269
add a missing operator that caused us to have to use (*MIB).foo everywhere.
...
llvm-svn: 130473
2011-04-29 05:24:07 +00:00
Rafael Espindola
68067664c3
Last bit by bit compatibility patch to MCDwarf.cpp: If a FDE with no LSDA is
...
assigned to a CIE that requires one, just output a 0.
llvm-svn: 130472
2011-04-29 03:06:29 +00:00
Rafael Espindola
7c7151512c
Add an alternative implementation of CIE and FDE emission that outputs them
...
in the same order as the one in CodeGen.
llvm-svn: 130471
2011-04-29 02:42:28 +00:00
Nick Lewycky
61aed87a49
Rename profile_rt.so to libprofile_rt.so under configure+make (it already was
...
under cmake).
Add libprofile_rt.a so that we can tell clang to link against it in --coverage
mode. Also turn it on by default in cmake builds.
Oscar, this touches a change you made for EXCLUDE_FROM_ALL support -- I think
I've done the right thing, but please let me know (or fix and commit) if not!
llvm-svn: 130470
2011-04-29 02:12:06 +00:00
Douglas Gregor
f8e894a103
Oops
...
llvm-svn: 130469
2011-04-29 01:50:40 +00:00
Douglas Gregor
63180b1190
libstdc++ 4.2 also uses __is_same as a struct name, which conflicts with our new type trait __is_same
...
llvm-svn: 130468
2011-04-29 01:38:03 +00:00
Douglas Gregor
68dac4676d
Use DirectoryLookup::getName() rather than getDir()->getName() in a context where we don't know whether we have a normal directory
...
llvm-svn: 130467
2011-04-29 00:45:09 +00:00
Eric Christopher
9ade5e2495
Update comments and checks to match reality.
...
llvm-svn: 130464
2011-04-29 00:07:20 +00:00
Eric Christopher
501d2e2c14
Whitespace.
...
llvm-svn: 130463
2011-04-29 00:03:10 +00:00
Eli Friedman
517728b1ae
Revert r130454; apparently this doesn't actually work.
...
llvm-svn: 130462
2011-04-28 23:55:14 +00:00
Johnny Chen
51cc833af7
Fix a typo.
...
llvm-svn: 130461
2011-04-28 23:53:16 +00:00
Ted Kremenek
5e1ed7b8dd
Enhance clang_getCXTUResourceUsage() to report the sizes of the memory buffers used by PCH.
...
llvm-svn: 130460
2011-04-28 23:46:20 +00:00
Fariborz Jahanian
6d003c3041
Fixes debug info generation problem for ms_struct structs.
...
// rdar://8823265
llvm-svn: 130458
2011-04-28 23:43:23 +00:00
Johnny Chen
6cd4d1d85a
Modified to take advantage of the iteration protocol for our lldb container objects.
...
llvm-svn: 130457
2011-04-28 23:34:58 +00:00
Johnny Chen
e25799b99b
Modified to take advantage of the iteration protocol for our lldb container objects.
...
llvm-svn: 130456
2011-04-28 23:26:17 +00:00
Eli Friedman
37b9ede969
Fix runline.
...
llvm-svn: 130455
2011-04-28 23:12:24 +00:00
Eli Friedman
e4ecd42926
Fix a rather obscure crash caused by ARM fast-isel generating code which redefines a register.
...
rdar://problem/9338332 .
llvm-svn: 130454
2011-04-28 23:03:25 +00:00
Argyrios Kyrtzidis
03535265ef
Cut down unnecessary zero'ing when value-initializing arrays of C++ objects.
...
-C++ objects with user-declared constructor don't need zero'ing.
-We can zero-initialize arrays of C++ objects in "bulk" now, in which case don't zero-initialize each object again.
llvm-svn: 130453
2011-04-28 22:57:55 +00:00
Johnny Chen
e69c748328
Modify the test suite and lldbutil.py to utilize the Python iteration pattern now that
...
the lldb iteration protocol has been added to lldb.py module.
llvm-svn: 130452
2011-04-28 22:57:01 +00:00
Fariborz Jahanian
8409bce4ac
ms_struct patch for initialization and field access irgen.
...
// rdar://8823265 - wip.
llvm-svn: 130451
2011-04-28 22:49:46 +00:00
Devang Patel
80d1d3aaec
Preserve line number information.
...
llvm-svn: 130450
2011-04-28 22:48:14 +00:00
Matt Beaumont-Gay
c99298ab5e
Coalesce some DEBUGs (moving an only-used-in-DEBUG variable's declaration into the DEBUG)
...
llvm-svn: 130448
2011-04-28 22:26:05 +00:00
Benjamin Kramer
cf9d1ad62e
We require threse bits to be zero, too.
...
This shouldn't happen in practice because the icmp would be a constant.
Add a check so we don't miscompile code if something goes wrong.
llvm-svn: 130446
2011-04-28 21:38:51 +00:00
Stuart Hastings
9f02fd9d8d
Raise ARM byval minimum size from 32 to 64, addressing a performance
...
regression in mason. rdar://problem/7662569
llvm-svn: 130444
2011-04-28 21:35:59 +00:00
Nick Lewycky
6aa79492a5
Only read *predecessor once so as to fix a theoretical issue where it changes
...
between two reads (threading).
Fix an off-by-one in the indirect counter table that I meant to revert after an
earlier experiment. Whoops!
Implement GCOV_PREFIX. Doesn't handle GCOV_PREFIX_STRIP yet.
Fix an off-by-one in string emission. Extra whoops!
Tolerate DISubprograms that have null Function*'s attached to them. I don't yet
understand what this means, but it happens when you have a global static with
a non-trivial constructor/destructor.
Fix a crash on switch statements with a single successor (default-only).
llvm-svn: 130443
2011-04-28 21:35:49 +00:00
Johnny Chen
fbc0d27144
Move the iteration protocol of lldb objects to the auto-generated lldb Python module.
...
This is so that the objects which support the iteration protocol are immediately obvious
from looking at the lldb.py file.
SBTarget supports two types of iterations: module and breakpoint. For an SBTarget instance,
you will need to issue either:
for m in target.module_iter()
or
for b in target.breakpoint_iter()
For other single iteration protocol objects, just use, for example:
for thread in process:
ID = thread.GetThreadID()
for frame in thread:
frame.Disassemble()
....
llvm-svn: 130442
2011-04-28 21:31:18 +00:00
Daniel Dunbar
c44d313cff
Driver/Darwin/ld: Set the deployment target following the version information in
...
the tool chain, instead of based on the translated arguments.
llvm-svn: 130440
2011-04-28 21:23:41 +00:00
Daniel Dunbar
c76da44eeb
tests: Tweak test to not write to the same temporary twice, in the hopes of avoiding sporadic win32 failures about renaming a temporary.
...
llvm-svn: 130439
2011-04-28 21:23:38 +00:00