Kostya Serebryany
32214a2587
[asan] fix fixed mapping for mac (ASAN_FLEXIBLE_MAPPING_AND_OFFSET=0)
...
llvm-svn: 175049
2013-02-13 10:15:03 +00:00
Bill Wendling
82c2ee67dc
Use array_pod_sort.
...
llvm-svn: 175048
2013-02-13 09:26:26 +00:00
Manuel Klimek
51e31d211c
Update phab docs to clarify how to accept a change.
...
llvm-svn: 175047
2013-02-13 09:07:18 +00:00
Bill Wendling
bce7b97c80
Add some accessor and query methods for retrieving Attribute objects and such.
...
llvm-svn: 175046
2013-02-13 08:42:21 +00:00
Timur Iskhodzhanov
ee6bc53365
Emit virtual/deleting destructors properly with -cxx-abi microsoft, PR15058
...
llvm-svn: 175045
2013-02-13 08:37:51 +00:00
Reed Kotler
9cb8e7b9f5
Make jumptables work for -static
...
llvm-svn: 175044
2013-02-13 08:32:14 +00:00
Elena Demikhovsky
9e0df7cb01
Prevent insertion of "vzeroupper" before call that preserves YMM registers, since a caller uses preserved registers across the call.
...
llvm-svn: 175043
2013-02-13 08:02:04 +00:00
Craig Topper
8b3af04c56
Remove unnecessary condtional assignment. The next line ignores the result of the assignment with the same condition.
...
llvm-svn: 175042
2013-02-13 07:44:17 +00:00
Eric Christopher
19690538d3
This is actually located at the end, not the middle.
...
llvm-svn: 175041
2013-02-13 07:22:25 +00:00
Kostya Serebryany
ec87e785a3
[msan] don't check shadow inside interceptors if we are inside symbolizer; add weak function __msan_default_options that overrides default options
...
llvm-svn: 175040
2013-02-13 07:19:47 +00:00
Shankar Easwaran
4b9cea7317
fix the mergeable string atom, when the target points to a symbol which is at a relative offset from the start of the .rodata section
...
llvm-svn: 175039
2013-02-13 06:35:33 +00:00
Shankar Easwaran
96d594b14e
add merge strings option, this temporarily fixes the problem bringing up helloworld with glibc on x86_64
...
llvm-svn: 175038
2013-02-13 06:12:52 +00:00
Kostya Serebryany
4681fbf002
[tsan] simplify tsan-vs-gvn test since gvn vs tsan is now fixed; fix lint
...
llvm-svn: 175037
2013-02-13 06:07:50 +00:00
Eric Christopher
389ee71b0a
Check i1 as well as i8 variables for 8 bit registers for x86 inline
...
assembly.
llvm-svn: 175036
2013-02-13 06:01:05 +00:00
Eric Christopher
2398a9a175
Finish obviously broken thought.
...
llvm-svn: 175035
2013-02-13 06:01:00 +00:00
Kostya Serebryany
3838f27905
[tsan] disable load widening in ThreadSanitizer mode
...
llvm-svn: 175034
2013-02-13 05:59:45 +00:00
Kostya Serebryany
caf11af9d3
[asan] fix confusing indentation
...
llvm-svn: 175033
2013-02-13 05:14:12 +00:00
Chris Lattner
bbbb857022
use memcpy instead of dubious union to type pun two values,
...
thanks to David Blaike for pointing this out.
llvm-svn: 175032
2013-02-13 04:53:40 +00:00
Nico Weber
71800c46ae
Formatter: And more cast tests (these don't pass yet).
...
llvm-svn: 175031
2013-02-13 04:40:03 +00:00
Nico Weber
4401b2a4e2
Formatter: Add more cast tests.
...
llvm-svn: 175030
2013-02-13 04:32:57 +00:00
Nico Weber
c6fe2165c9
Formatter: Refactor the cast detection code to be a bit more readable.
...
No functionality change. Also add another cast test.
llvm-svn: 175029
2013-02-13 04:13:13 +00:00
Nico Weber
a789239c64
Formatter: Detect ObjC method expressions after casts.
...
Not all casts are correctly detected yet, but it helps in some cases.
llvm-svn: 175028
2013-02-13 03:48:27 +00:00
Nick Lewycky
9ffb3499a5
Change this comment to helpfully explain why it's there.
...
llvm-svn: 175027
2013-02-13 03:34:21 +00:00
Jordan Rose
42b130b20a
[analyzer] Use Clang's evaluation for global constants and default arguments.
...
Previously, we were handling only simple integer constants for globals and
the smattering of implicitly-valued expressions handled by Environment for
default arguments. Now, we can use any integer constant expression that
Clang can evaluate, in addition to everything we handled before.
PR15094 / <rdar://problem/12830437>
llvm-svn: 175026
2013-02-13 03:11:06 +00:00
Jordan Rose
ff0dd946b1
[analyzer] Use makeZeroVal in RegionStore's lazy evaluation of statics.
...
No functionality change.
llvm-svn: 175025
2013-02-13 03:11:01 +00:00
Eric Christopher
bc67170056
Fix comment.
...
llvm-svn: 175024
2013-02-13 02:29:18 +00:00
Manman Ren
f019cd62da
Debug Info: LiveDebugVarible can remove DBG_VALUEs, make sure we emit them back.
...
RegisterCoalescer used to depend on LiveDebugVariable. LDV removes DBG_VALUEs
without emitting them at the end.
We fix this by removing LDV from RegisterCoalescer. Also add an assertion to
make sure we call emitDebugValues if DBG_VALUEs are removed at
runOnMachineFunction.
rdar://problem/13183203
Reviewed by Andy & Jakob
llvm-svn: 175023
2013-02-13 01:14:49 +00:00
Chad Rosier
8356d091bf
[ms-inline-asm] Test cases to ensure the AsmRewrite list is sorted (r175021).
...
Part of rdar://13202662
llvm-svn: 175022
2013-02-13 01:06:08 +00:00
Chad Rosier
b2144ce644
[ms-inline-asm] Make sure the AsmRewrite list is sorted in lexical order.
...
rdar://13202662
llvm-svn: 175021
2013-02-13 01:03:13 +00:00
David Peixotto
4299cf83a3
Test commit. Fixed typo.
...
llvm-svn: 175020
2013-02-13 00:36:35 +00:00
Arnaud A. de Grandmaison
2e4df4f7c2
Fix comment
...
visitSExt is an adapted copy of the related visitZExt method, so adapt the comment accordingly.
llvm-svn: 175019
2013-02-13 00:19:19 +00:00
Douglas Gregor
c14895645d
Order the methods in the global method pool based on when they become visible, not when they become deserialized <rdar://problem/13203033>.
...
llvm-svn: 175018
2013-02-12 23:36:21 +00:00
Michael Gottesman
27029f4642
Changed isStoredObjCPointer => IsStoredObjCPointer. No functionality change.
...
llvm-svn: 175017
2013-02-12 23:35:08 +00:00
Bill Wendling
613c3a8e97
Add a default empty string to the 'value' of a string attribute.
...
llvm-svn: 175016
2013-02-12 23:14:31 +00:00
Dmitri Gribenko
64bbf7e5f3
Replace 'signed' with 'int'. 'signed' is not typical for LLVM style
...
llvm-svn: 175015
2013-02-12 22:40:22 +00:00
Dan Gohman
a6307574d6
Actually delete this code, since it's really not clear what it's
...
trying to do.
llvm-svn: 175014
2013-02-12 22:26:41 +00:00
Richard Smith
60261eadbd
Highlight caret in bold green, to match Clang diagnostics.
...
llvm-svn: 175013
2013-02-12 22:12:10 +00:00
Tobias Grosser
e2417fc2a4
clang-format a file
...
llvm-svn: 175012
2013-02-12 22:05:48 +00:00
Tobias Grosser
d1d40a9e0a
Use documented isl function
...
llvm-svn: 175011
2013-02-12 22:05:43 +00:00
Argyrios Kyrtzidis
962b2210cc
[preprocessing record] Add some sanity checks for the preprocessed entity index
...
to make sure we don't crash on release if the index is not valid.
rdar://13089714
llvm-svn: 175010
2013-02-12 21:41:23 +00:00
Chad Rosier
3ea602cd30
[ms-inline-asm] Add test cases for the align/emit directives.
...
Part of rdar://13200215
llvm-svn: 175009
2013-02-12 21:34:14 +00:00
Chad Rosier
c7f552c33e
[ms-inline-asm] Implement align directive (which is roughly equivalent to .align).
...
Also, allow _EMIT and __EMIT for the emit directive. We already do the same
for TYPE, SIZE, and LENGTH.
rdar://13200215
llvm-svn: 175008
2013-02-12 21:33:51 +00:00
Jack Carter
f6622bad6b
This patch just fixes up various llvm formatting
...
violations such as tabs, blanks at eol and long
lines.
llvm-svn: 175007
2013-02-12 21:29:39 +00:00
Guy Benyei
83c74e9fad
Add static cast to unsigned char whenever a character classification function is called with a signed char argument, in order to avoid assertions in Windows Debug configuration.
...
llvm-svn: 175006
2013-02-12 21:21:59 +00:00
Dmitri Gribenko
4e472b6328
Add a test for r174980, that we used to accept
...
llvm-svn: 175005
2013-02-12 20:43:41 +00:00
Daniel Jasper
f52ab8d60c
Fix crash for incomplete labels in macros.
...
Still the formatting can be improved, but at least we don't assert any
more. This happened when trying to format lib/Sema/SemaType.cpp.
llvm-svn: 175003
2013-02-12 20:17:17 +00:00
Daniel Malea
4d3c008c7d
Fix document typos, indentation in python code, and API examples.
...
Patch by Bruce Mitchener!
llvm-svn: 175002
2013-02-12 20:01:49 +00:00
Dan Gohman
f377160d2f
Record PRE predecessors with a SmallVector instead of a DenseMap, and
...
avoid a second pred_iterator traversal.
llvm-svn: 175001
2013-02-12 19:49:10 +00:00
Chad Rosier
868d668e78
[ms-inline asm] Update test case now that we are correctly parsing __emit directives.
...
llvm-svn: 175000
2013-02-12 19:42:57 +00:00
Chad Rosier
5f6b4d3fc5
[ms-inline asm] Pass the length of the IDVal, so we can do a proper AsmRewrite.
...
llvm-svn: 174999
2013-02-12 19:42:32 +00:00