Fariborz Jahanian
ef6a39c80b
Removed couple of html named character references in
...
my last patch.
llvm-svn: 173856
2013-01-30 00:10:09 +00:00
Daniel Dunbar
f79ee383ac
[Frontend] Make the include dir group independent from the "use sysroot" bit.
...
- This slightly decouples the path handling, since before the group sometimes
dominated the "use sysroot" bit, but it was still passed in via the API.
- No functionality change.
llvm-svn: 173855
2013-01-29 23:59:45 +00:00
Daniel Dunbar
335a37b7e0
[Frontend] Rename a member variable to clarify its intent.
...
llvm-svn: 173854
2013-01-29 23:59:43 +00:00
Daniel Dunbar
2e8eb01a71
[Frontend] Factor out helper function, for clarity.
...
llvm-svn: 173853
2013-01-29 23:59:37 +00:00
Chad Rosier
c5103c3f3e
[driver] Clear the FailureResultFiles when initializing clang diagnostics. Also,
...
minor cleanup.
llvm-svn: 173852
2013-01-29 23:57:10 +00:00
Fariborz Jahanian
7b3ae19048
[Doc parsing] Patch to parse Doxygen-supported HTML character
...
references to their UTIF-8 encoding. Reviewed offline by Doug.
// rdar://12392215
llvm-svn: 173850
2013-01-29 23:42:26 +00:00
Renato Golin
5e9d55eca0
Adding simple cast cost to ARM
...
Changing ARMBaseTargetMachine to return ARMTargetLowering intead of
the generic one (similar to x86 code).
Tests showing which instructions were added to cast when necessary
or cost zero when not. Downcast to 16 bits are not lowered in NEON,
so costs are not there yet.
llvm-svn: 173849
2013-01-29 23:31:38 +00:00
Chad Rosier
ae229d599b
[ubsan] Implement the -fcatch-undefined-behavior flag using a trapping
...
implementation; this is much more inline with the original implementation
(i.e., pre-ubsan) and does not require run-time library support.
The trapping implementation can be invoked using either '-fcatch-undefined-behavior'
or '-fsanitize=undefined-trap -fsanitize-undefined-trap-on-error', with the latter
being preferred. Eventually, the -fcatch-undefined-behavior' flag will be removed.
llvm-svn: 173848
2013-01-29 23:31:22 +00:00
Dmitri Gribenko
01edb9d7d1
Remove unused variable (unused since r173839)
...
llvm-svn: 173847
2013-01-29 23:27:45 +00:00
Dmitri Gribenko
69b5647369
Documentation: add empty lines so that lists are properly recognized
...
llvm-svn: 173845
2013-01-29 23:14:41 +00:00
NAKAMURA Takumi
cdf766326d
clang/test/Index/getcursor-preamble.m: Formatting.
...
llvm-svn: 173844
2013-01-29 23:03:22 +00:00
NAKAMURA Takumi
473a5828f6
clang/test/Index/getcursor-preamble.m: Tweak for win32. env(1) is required to change variables locally.
...
llvm-svn: 173843
2013-01-29 23:03:16 +00:00
Michael Gottesman
e52dec1695
Made certain small functions in PtrState inlined.
...
llvm-svn: 173842
2013-01-29 22:29:59 +00:00
David Blaikie
8505c29593
Move -Wstatic-float-init fixit into a note & don't recover as if constexpr
...
llvm-svn: 173841
2013-01-29 22:26:08 +00:00
Filipe Cabecinhas
276a08b5b1
Actually build DataFormatters dir. Fix for the r173732 fix.
...
llvm-svn: 173840
2013-01-29 22:20:20 +00:00
Michael J. Spencer
54b24e1000
[MC][COFF] Delay handling symbol aliases when writing
...
Fixes PR14447 and PR9034. Patch by Nico Rieck!
llvm-svn: 173839
2013-01-29 22:10:07 +00:00
Michael J. Spencer
e68f90355c
[ELF] Chop the ELF prefix off of most things.
...
llvm-svn: 173838
2013-01-29 22:03:39 +00:00
Pekka Jaaskelainen
f50ab84bb1
LoopVectorize: convert TinyTripCountVectorThreshold constant
...
to a command line switch.
llvm-svn: 173837
2013-01-29 21:42:08 +00:00
Michael Gottesman
9bdab2bf6b
Removed trailing comma in last element of enum declaration.
...
llvm-svn: 173836
2013-01-29 21:41:44 +00:00
David Blaikie
3645cf99f2
Don't fixit/recover from -Wstatic-float-init when it's not an error.
...
Fix to change r173414 that lead to Clang changing const to constexpr even under
-Wno-static-float-init.
llvm-svn: 173835
2013-01-29 21:40:37 +00:00
Michael Gottesman
386241ce5b
Moved S_Stop back to its previous position in the sequence order.
...
llvm-svn: 173834
2013-01-29 21:39:02 +00:00
Weiming Zhao
4a0b4fb9a5
Add a special handling case for untyped CopyFromReg node in GetCostForDef() of ScheduleDAGRRList
...
llvm-svn: 173833
2013-01-29 21:18:43 +00:00
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