Michael Gottesman
23cda0cd39
Fixed a few debug messages and some 80+ violations.
...
llvm-svn: 173832
2013-01-29 21:07:53 +00:00
Michael Gottesman
53fd20bdbd
Added some periods to some comments and added an overload for operator<< for type Sequence so I can print out Sequences in debug statements.
...
llvm-svn: 173831
2013-01-29 21:07:51 +00:00
Daniel Jasper
7a6d09b300
Move the token annotator into separate files.
...
No functional changes. Also removed experimental-warning from all of
clang-format's files, as it is no longer accurate.
llvm-svn: 173830
2013-01-29 21:01:14 +00:00
Michael Gottesman
774d2c014e
Changed DoesObjCBlockEscape => DoesRetainableObjPtrEscape so I can use it to perform escape analysis of other retainable object pointers in other locations.
...
llvm-svn: 173829
2013-01-29 21:00:52 +00:00
Bill Wendling
03eefb3a38
Add a couple of accessor methods to get the kind and values of an attribute.
...
llvm-svn: 173828
2013-01-29 20:45:34 +00:00
Bill Wendling
c3c714ba7e
s/Data/Kind/g. No functionality change.
...
llvm-svn: 173827
2013-01-29 20:37:10 +00:00
Argyrios Kyrtzidis
005206a813
[Preprocessor] When checking if we can concatenate two tokens, check
...
if they were already concatenated in source using the spelling locations
even if they came from a macro expansion.
This fixes an issue where a GUID passed as macro argument ends up
malformed after preprocessing because we added spaces inside it.
rdar://13016645
llvm-svn: 173826
2013-01-29 20:28:24 +00:00
Chad Rosier
dd60e09021
[driver] Refactor the driver so that a failing commands doesn't prevent
...
subsequent commands from being executed.
The diagnostics generation isn't designed for this use case, so add a note to
fix this in the very near future. For now, just generated the diagnostics for
the first failing command.
Part of rdar://12984531
llvm-svn: 173825
2013-01-29 20:15:05 +00:00
Shankar Easwaran
185e8a076d
remove targetInfo and layout from ELFTargetLayout
...
llvm-svn: 173824
2013-01-29 20:13:16 +00:00
Greg Clayton
b25406cd9d
<rdar://problem/13107904>
...
wchar_t causes problem with certain compilers. Removing it for now.
llvm-svn: 173823
2013-01-29 20:03:58 +00:00
Michael J. Spencer
43ecac5a2c
[ELF] Fix header sort order.
...
llvm-svn: 173822
2013-01-29 19:53:41 +00:00
Daniel Jasper
ddaa9be978
Improve formatting of code with comments.
...
Before:
aaaaaaa(aaaaaa( // comment
aaaaaaa));
<big mess>
After:
aaaaaaa(aaaaaa( // comment
aaaaaaaa));
function(/* parameter 1 */ aaaaaaa,
/* parameter 2 */ aaaaaaa,
/* parameter 3 */ aaaaaaa,
/* parameter 4 */ aaaaaaa);
(the latter example was only wrong in the one-arg-per-line mode, e.g. in
Google style).
llvm-svn: 173821
2013-01-29 19:41:55 +00:00
David Blaikie
9a7a7a9a6f
Support artificial parameters in function types.
...
Provides the functionality for Clang change r172911 - I just had this still
lying around.
llvm-svn: 173820
2013-01-29 19:35:24 +00:00
Jyotsna Verma
b16a9cb132
Use multiclass for post-increment store instructions.
...
llvm-svn: 173816
2013-01-29 18:42:41 +00:00
Will Dietz
25abfe49e1
[tsan] Fix checks for siginfo_t in tests
...
llvm-svn: 173815
2013-01-29 18:29:34 +00:00
Jyotsna Verma
a609b1c89d
Add constant extender support for MInst type instructions.
...
llvm-svn: 173813
2013-01-29 18:18:50 +00:00
Evan Cheng
27e41c9f70
Remove dead code.
...
llvm-svn: 173812
2013-01-29 18:08:22 +00:00
Argyrios Kyrtzidis
c821f739b5
Mark a struct definition in an objc container with the TopLevelDeclInObjCContainer bit.
...
Fixes accurately getting a cursor inside an objc container containing a struct definition,
from a PCH/preamble file.
rdar://12584613
llvm-svn: 173811
2013-01-29 18:00:54 +00:00
Edwin Vane
82f80d4967
Fixing warnings revealed by gcc release build
...
Fixed set-but-not-used warnings.
Reviewer: gribozavr
llvm-svn: 173810
2013-01-29 17:42:24 +00:00
Benjamin Kramer
cf406756ce
LoopVectorize: Clean up ValueMap a bit and avoid double lookups.
...
No intended functionality change.
llvm-svn: 173809
2013-01-29 17:31:33 +00:00
Michael J. Spencer
289dcedea5
[ELF] Add support for IFUNC.
...
This sadly doesn't have a test for the final
output because llvm-objdump can't dump relocations
that don't belong to a section :(
llvm-svn: 173808
2013-01-29 16:38:03 +00:00
NAKAMURA Takumi
978b5a0e02
R600/AMDILPeepholeOptimizer.cpp: Tweak std::make_pair to satisfy C++11.
...
llvm-svn: 173807
2013-01-29 16:31:56 +00:00
Daniel Jasper
f7db433ed4
Allow all parameters on next line for function calls in Chrome.
...
The style guide only forbids this for function declarations. So,
now
someFunction(
aaaaaaaaaaaaaaaaaaaa, aaaaaaaaaaaaaaaaa, aaaaaaaaaaaa);
Is allowed in Chromium mode.
llvm-svn: 173806
2013-01-29 16:03:49 +00:00
Daniel Jasper
17fdaa40fc
Split ">>" in "A<B<C> >" in Chromium style.
...
It needs to be compatible with C++03.
llvm-svn: 173805
2013-01-29 15:19:38 +00:00
NAKAMURA Takumi
f05d2f254e
AttributeSet::get(): Fix a valgrind error. It doesn't affect actual behavior, though.
...
Don't touch I->first on the end iterator, I == E!
llvm-svn: 173804
2013-01-29 15:18:16 +00:00
Daniel Jasper
85f16f9462
Fix uninitialized error caused by r173801.
...
llvm-svn: 173803
2013-01-29 15:15:59 +00:00
Joey Gouly
0942e0b5e1
Fix a crash in OpenCL code by using the proper (RHS) bit-width.
...
llvm-svn: 173802
2013-01-29 15:09:40 +00:00
Daniel Jasper
cf3300016e
Calculate the split penalty upfront.
...
This is
a) More efficient.
b) Important as we move forward with further metrics for penalty.
No functional changes intended.
llvm-svn: 173801
2013-01-29 15:03:01 +00:00
Evgeniy Stepanov
eac7f934f0
[msan] Cleanup public interface header.
...
Moved everything users are not supposed to use to a private interface header.
Documented all public interfaces. Made them safe to use even if built without
MemorySanitizer.
llvm-svn: 173800
2013-01-29 14:33:29 +00:00
Dmitry Vyukov
019ef67a97
tsan: dump stack on internal assert failure
...
llvm-svn: 173799
2013-01-29 14:20:12 +00:00
Hans Wennborg
5deecd9043
Fix typo in X86BaseInfo.h that I introduced in r157818.
...
llvm-svn: 173798
2013-01-29 14:05:57 +00:00
Dmitry Vyukov
4399d92252
tsan: support for inprocess symbolizer
...
llvm-svn: 173797
2013-01-29 13:05:30 +00:00
Dmitry Vyukov
b46930befa
tsan: remember when we are inside of symbolizer code (required for inprocess symbolizer)
...
llvm-svn: 173796
2013-01-29 13:03:07 +00:00
Alexey Samsonov
322d7fbd9d
ASan: fix lint
...
llvm-svn: 173795
2013-01-29 12:08:12 +00:00
Evgeniy Stepanov
c9db3b8b39
[sanitizer] Copy sanitizer headers to the build tree.
...
llvm-svn: 173794
2013-01-29 11:46:06 +00:00
Daniel Jasper
bbc8415fda
Fix a comment and reformat clang-format with clang-format
...
Not all changes might be ideal, but IMO all are acceptable.
llvm-svn: 173793
2013-01-29 11:27:30 +00:00
Daniel Jasper
38c11ce93d
Initial support for multiple variable declarations.
...
Before:
SomeType aaaaaaaaaaaaaaaaa = aaaaaa->aaaaaaaaaaaaaaaaa(),
aaaaaaaaaaa = aaaaaa->aaaaaaaaaaa();
After:
SomeType aaaaaaaaaaaaaaaaa = aaaaaa->aaaaaaaaaaaaaaaaa(),
aaaaaaaaaaa = aaaaaa->aaaaaaaaaaa();
llvm-svn: 173792
2013-01-29 11:21:01 +00:00
Joey Gouly
39989dadd3
Add a diagnostic for an OpenCL kernel with a pointer pointer argument.
...
Also refactor the surrounding code a little.
llvm-svn: 173791
2013-01-29 10:54:06 +00:00
Richard Smith
064697ca06
Test update missed in r173789.
...
llvm-svn: 173790
2013-01-29 10:18:33 +00:00
Richard Smith
7dd5fe5ce6
Produce a diagnostic if alignas is applied to an expression. Neither C11 nor
...
C++11 allows that.
llvm-svn: 173789
2013-01-29 10:18:18 +00:00
Richard Smith
810ad3eb44
Downgrade 'attribute ignored when parsing type' from error to warning, to match
...
the diagnostic's warn_ name. Switch some places (notably C++11 attributes)
which really wanted an error over to a different diagnostic. Finally, suppress
the diagnostic entirely for __ptr32, __ptr64 and __w64, to avoid producing
diagnostics in important system headers.
llvm-svn: 173788
2013-01-29 10:02:16 +00:00
Daniel Jasper
6a217e1815
Reverting changes from r173785 (removing empty lines before "}").
...
This needs some more thinking, e.g. for namespaces, chains of if-else
if, ...
llvm-svn: 173787
2013-01-29 10:00:16 +00:00
Dmitry Vyukov
73b12d7132
asan: fix the test
...
llvm-svn: 173786
2013-01-29 09:59:53 +00:00
Daniel Jasper
aa94a90a79
Remove empty lines before "}".
...
Those empty lines waste vertical whitespace and almost never
increase readability.
Before:
void f() {
DoSomething();
}
After:
void f() {
DoSomething();
}
llvm-svn: 173785
2013-01-29 09:42:11 +00:00
Dmitry Vyukov
0632dd410c
tsan: fix the message (tsan is not asan)
...
llvm-svn: 173784
2013-01-29 09:39:58 +00:00
Dmitry Vyukov
7943b69002
tsan: add IsSymbolizerAvailable() function for querying for presence of internal/external symbolizer
...
llvm-svn: 173783
2013-01-29 09:35:14 +00:00
Dmitry Vyukov
b130fc3c0d
tsan: add interceptor stubs for stat family of functions
...
llvm-svn: 173782
2013-01-29 09:23:09 +00:00
Timur Iskhodzhanov
5d7ff00456
Hopefully fix the Windows build failure introduced in r173769
...
llvm-svn: 173781
2013-01-29 09:09:27 +00:00
Tim Northover
a0edd3ee66
Fix 64-bit atomic operations in Thumb mode.
...
The ARM and Thumb variants of LDREXD and STREXD have different constraints and
take different operands. Previously the code expanding atomic operations didn't
take this into account and asserted in Thumb mode.
llvm-svn: 173780
2013-01-29 09:06:13 +00:00
Richard Smith
1dba27cd49
Implement C++11 [dcl.align]p1 and C11 6.7.5/2 rules for alignas and _Alignas.
...
llvm-svn: 173779
2013-01-29 09:02:09 +00:00