Anders Carlsson
73ad5bc9ea
Serialize/deserialize the HasStandardLayout bit when writing/reading PCHs.
...
llvm-svn: 130525
2011-04-29 18:37:25 +00:00
Daniel Dunbar
72032861c6
MCAsmLayout: Add support for computing the symbol offset of variables. Not
...
currently used, because variables don't get reported as being "defined".
llvm-svn: 130524
2011-04-29 18:20:20 +00:00
Daniel Dunbar
bea7b93c88
MC: Change variable symbols to be recognized as defined, by assigning their sections based on FindAssociatedSection().
...
llvm-svn: 130523
2011-04-29 18:20:17 +00:00
Daniel Dunbar
b200f93125
MC/Mach-O: Update getSymbolAddress() to support evaluation of variables.
...
llvm-svn: 130522
2011-04-29 18:13:42 +00:00
Howard Hinnant
575d41ee92
Correction to set of overloaded pair constructors for C++0x
...
llvm-svn: 130521
2011-04-29 18:10:55 +00:00
Daniel Dunbar
29ba55cfe4
MC/Mach-O: Allow emission of relocations for variables in some more cases.
...
llvm-svn: 130520
2011-04-29 18:10:47 +00:00
Daniel Dunbar
b9c2b6c50d
MC/Mach-O: Find section ordinal's by looking at the symbol, instead of assuming they are present in a fragment.
...
llvm-svn: 130519
2011-04-29 18:07:43 +00:00
Devang Patel
124ae13421
Hoist MCLineEntry construction AsmPrinter so that anyone who derives from AsmPrinter can have line number entries.
...
PR 9810
llvm-svn: 130518
2011-04-29 18:00:54 +00:00
Daniel Dunbar
dc3e4cc5ed
MCExpr: Add FindAssociatedSection, which attempts to mirror the 'as' semantics
...
that associate sections with expressions.
llvm-svn: 130517
2011-04-29 18:00:03 +00:00
Daniel Dunbar
252e8f9ac1
Driver/cc1as: Forward -mllvm arguments when compiling assembly files.
...
llvm-svn: 130516
2011-04-29 17:53:18 +00:00
Daniel Dunbar
1bf128eaeb
MC/AsmParser: Generalize a check.
...
llvm-svn: 130515
2011-04-29 17:53:11 +00:00
Douglas Gregor
dd8061e09f
Fix a C++0x portability issue with std::make_pair. Explicitly providing template arguments no longer works when the call arguments are lvalues.
...
llvm-svn: 130513
2011-04-29 16:57:12 +00:00
Douglas Gregor
6c38001ec5
Qualify calls to std::next(), to avoid conflicts with
...
libraries/applications that define their own 'next' template.
llvm-svn: 130511
2011-04-29 16:20:26 +00:00
Douglas Gregor
0e50682f26
Include <pthread.h> before we use pthread_self/pthread_kill
...
llvm-svn: 130510
2011-04-29 16:12:17 +00:00
Charles Davis
6c488f14f6
Remove comments about __int8 and friends from the mangler. Turns out we don't
...
actually have to implement them, since in modern versions of MSVC they're
aliases to the standard C types.
llvm-svn: 130509
2011-04-29 15:50:52 +00:00
Douglas Gregor
f1fce5d3ef
White-list yet more type trait names, since they're used as
...
identifiers in libc++.
llvm-svn: 130508
2011-04-29 15:31:39 +00:00
Rafael Espindola
1fc5bf9fc5
The last hack for producing bit identical output with cfi on OS X.
...
llvm-svn: 130504
2011-04-29 15:09:53 +00:00
Rafael Espindola
697edc89a5
Change DwarfCFIException's member variables to track what it actually
...
emmits: .cfi_personality, .cfi_lsda and the moves.
llvm-svn: 130503
2011-04-29 14:48:51 +00:00
Andrew Trick
e794e17524
Teach Thumb2 isel to fold and->rotr ==> ROR.
...
Generalization of Nate Begeman's patch!
llvm-svn: 130502
2011-04-29 14:18:15 +00:00
Rafael Espindola
b7a012a282
Factor some code to needsCFIMoves. Avoid printing moves when we don't have to.
...
llvm-svn: 130501
2011-04-29 14:14:06 +00:00
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