Anton Yartsev
5363bf157f
added post-statement callback to CXXNewExpr and pre-statement callback to CXXDeleteExpr
...
llvm-svn: 170234
2012-12-14 19:48:34 +00:00
Argyrios Kyrtzidis
53e3d6d7f0
Don't hit an assertion failure when calculating the __PRETTY_FUNCTION__
...
of a member function with parenthesized declarator.
Like this test case:
class Foo {
const char *(baz)() {
return __PRETTY_FUNCTION__;
}
};
llvm-svn: 170233
2012-12-14 19:44:11 +00:00
Anna Zaks
a40bcac0ef
[analyzer] Propagate the checker's state from checkBranchCondition
...
Fixes a bug, where we were dropping the state modifications from the
checkBranchCondition checker callback.
llvm-svn: 170232
2012-12-14 19:08:20 +00:00
Anna Zaks
5f2af81e79
[analyzer] Refactor: Store visited Decls instead of CallGraphNodes.
...
llvm-svn: 170231
2012-12-14 19:08:17 +00:00
Edwin Vane
9e3c9de527
Use renamed CommonOptionsParser member functions
...
GetCompilations() and GetSourcePathLists() were renamed to match LLVM style.
Reviewed By: Alexander Kornienko
llvm-svn: 170230
2012-12-14 18:59:24 +00:00
Edwin Vane
524741fbbd
Style and Doc fix for CommonOptionsParser
...
- Renaming GetCompilations() and GetSourcePathList() to follow LLVM
style.
- Updating docs to reflect name change.
- Also updating help text to not mention clang-check since this class
can be used by any tool.
Reviewed By: Alexander Kornienko
llvm-svn: 170229
2012-12-14 18:58:25 +00:00
Argyrios Kyrtzidis
164fdb607b
[preprocessor] For errors at a function macro invocation, also include
...
a note about where the macro is defined.
llvm-svn: 170228
2012-12-14 18:53:47 +00:00
Pedro Artigas
b95c53e216
Add more reset methods to make all objects that the backend may use for outputting code have a reset, some are not used but were declared for completeness
...
llvm-svn: 170227
2012-12-14 18:52:11 +00:00
Shuxin Yang
f8e9a5a061
rdar://12753946
...
Implement rule : "x * (select cond 1.0, 0.0) -> select cond x, 0.0"
llvm-svn: 170226
2012-12-14 18:46:06 +00:00
NAKAMURA Takumi
92eb254c3c
[CMake] Move libxml2 stuff from clang to llvm/cmake.
...
llvm-svn: 170225
2012-12-14 18:30:20 +00:00
Andrew Kaylor
7a73251dea
Change crash handling to use eStateStopped rather than eStateCrashed.
...
llvm-svn: 170224
2012-12-14 18:24:34 +00:00
Nico Weber
7aa4a881e6
Don't require a space between the two ">" in "vector<id<protocol>>" in objc++11.
...
C++11 allowed writing "vector<vector<int>>" without a space between the two ">".
This change allows this for protocols in template lists too in -std=c++11 mode,
and improves the diagnostic in c++98 mode.
llvm-svn: 170223
2012-12-14 18:22:38 +00:00
Bill Schmidt
9f0b4ec0f5
This patch improves the 64-bit PowerPC InitialExec TLS support by providing
...
for a wider range of GOT entries that can hold thread-relative offsets.
This matches the behavior of GCC, which was not documented in the PPC64 TLS
ABI. The ABI will be updated with the new code sequence.
Former sequence:
ld 9,x@got@tprel(2)
add 9,9,x@tls
New sequence:
addis 9,2,x@got@tprel@ha
ld 9,x@got@tprel@l(9)
add 9,9,x@tls
Note that a linker optimization exists to transform the new sequence into
the shorter sequence when appropriate, by replacing the addis with a nop
and modifying the base register and relocation type of the ld.
llvm-svn: 170209
2012-12-14 17:02:38 +00:00
Alexey Samsonov
6a68a9117b
[Sanitizer] remove extra typename
...
llvm-svn: 170208
2012-12-14 15:37:35 +00:00
Dmitry Vyukov
5a3d15c126
tsan: add test for errno spoiling in signal handler
...
llvm-svn: 170207
2012-12-14 14:42:40 +00:00
Kostya Serebryany
673c052631
[sanitizer] add AllocatorLeakTest
...
llvm-svn: 170206
2012-12-14 14:20:29 +00:00
Dmitry Vyukov
be6005a0d5
tsan: add test for malloc/free in signal handler
...
llvm-svn: 170205
2012-12-14 13:56:27 +00:00
Evgeniy Stepanov
fb37510e96
Add MemorySanitizer.cpp to the lint script.
...
llvm-svn: 170204
2012-12-14 13:48:55 +00:00
Evgeniy Stepanov
9b72e991c6
Fix lint warnings in MemorySanitizer.cpp.
...
llvm-svn: 170203
2012-12-14 13:48:31 +00:00
Dmitry Vyukov
51b6e07deb
tsan: fix lint warning
...
llvm-svn: 170202
2012-12-14 13:46:03 +00:00
Chandler Carruth
58b3cb6cc2
The CellSPU backend is more than experimental, it's dead now...
...
llvm-svn: 170201
2012-12-14 13:44:05 +00:00
Chandler Carruth
1e83227942
Remove a section that was in 3.1's notes.
...
Just give a shout if this was actually still important....
llvm-svn: 170200
2012-12-14 13:43:59 +00:00
Evgeniy Stepanov
49175b237d
[msan] Origin stores and loads do not need explicit alignment.
...
Origin address is always 4 byte aligned, and the access type is always i32.
llvm-svn: 170199
2012-12-14 13:43:11 +00:00
Chandler Carruth
e6ccc13dbb
Remove several entries from the 3.2 release notes that were in the 3.1
...
release notes already. =]
llvm-svn: 170198
2012-12-14 13:41:02 +00:00
Chandler Carruth
7c5d60c01d
Fix the order of these sections of the release notes.
...
llvm-svn: 170197
2012-12-14 13:37:18 +00:00
Chandler Carruth
108d19e6b5
Add a rough draft of some content about the new SROA. I'll try to proof
...
read this and clean it up tomorrow, but hopefully it's a good
placeholder.
llvm-svn: 170196
2012-12-14 13:37:17 +00:00
Chandler Carruth
b745ac48a6
Delete a long-stale "if its ready" comment. All indications is that this
...
will look a bit different when we have time to get it ready to turn on,
and we won't likely need this reminder.
llvm-svn: 170195
2012-12-14 13:37:12 +00:00
Chandler Carruth
ec86541e9f
Provide some actual highlight bullets for Clang.
...
If anyone has better highlights (I'm obviously biased by the things that
I'm excited about) jump in and add them!
llvm-svn: 170194
2012-12-14 13:22:57 +00:00
Kostya Serebryany
025d64a1b9
[asan] more asan_allocator2 code: record the allocation stack trace, implement calloc/etc
...
llvm-svn: 170193
2012-12-14 13:16:19 +00:00
Evgeniy Stepanov
f18e3af11f
[msan] Refactor default shadow propagation and origin tracking.
...
This change moves the code for default shadow propagaition (handleShadowOr)
and origin tracking (setOriginForNaryOp) into a new builder-like class. Also
gets rid of handleShadowOrBinary.
llvm-svn: 170192
2012-12-14 12:54:18 +00:00
Dmitry Vyukov
5b375d84c0
tsan: fix build
...
llvm-svn: 170191
2012-12-14 12:24:11 +00:00
Kostya Serebryany
7dfb168eb8
[asan] more asan_allocator2 code: actually un/poison shadow on malloc/free
...
llvm-svn: 170190
2012-12-14 12:15:09 +00:00
Alexey Samsonov
cd1e68ebb1
[Sanitizer] use INTERCEPT_FUNCTION(foo) instead of CHECK(INTERCEPT_FUNCTION(foo)) - this check may fail on Linux if user program defines its own version of library function foo
...
llvm-svn: 170189
2012-12-14 11:52:02 +00:00
NAKAMURA Takumi
02f4395df6
Targets.cpp: [cygwin] Add the predefined macro "_X86_", according to newer version of cygwin/w32api.
...
llvm-svn: 170188
2012-12-14 10:17:26 +00:00
Dmitry Vyukov
34aef74a4d
tsan: disable allocator tests in debug build
...
llvm-svn: 170187
2012-12-14 10:17:22 +00:00
Dmitry Vyukov
ed6d54368c
tsan: comment out debug output in test
...
llvm-svn: 170186
2012-12-14 10:12:14 +00:00
Dmitry Vyukov
714accd917
tsan: add sanity test for Go runtime into presubmit test
...
llvm-svn: 170185
2012-12-14 10:10:57 +00:00
Dmitry Vyukov
e0c37640f7
tsan: add socketpair() interceptor and test
...
llvm-svn: 170184
2012-12-14 09:57:42 +00:00
Patrik Hagglund
55d6f47a37
Change TargetLowering::getLoadExtAction to take an MVT, instead of
...
EVT.
llvm-svn: 170183
2012-12-14 09:05:13 +00:00
Argyrios Kyrtzidis
26444c5243
Have Sema::ActOnStartOfFunctionDef return the declaration that was passed it.
...
This fixes the missing warning here:
struct S {
template <typename T>
void meth() {
char arr[3];
arr[4] = 0; // warning: array index 4 is past the end of the array
}
};
template <typename T>
void func() {
char arr[3];
arr[4] = 0; // no warning
}
llvm-svn: 170180
2012-12-14 06:54:03 +00:00
Argyrios Kyrtzidis
6fada2ddbd
Remove code from Sema::ActOnStartOfFunctionTemplateDef that duplicates what
...
Sema::ActOnStartOfFunctionDef is already doing.
llvm-svn: 170179
2012-12-14 06:53:58 +00:00
Nico Weber
b819108af7
fix another spello
...
llvm-svn: 170177
2012-12-14 02:41:18 +00:00
Nico Weber
696933606b
fix spello
...
llvm-svn: 170176
2012-12-14 02:40:09 +00:00
NAKAMURA Takumi
6780b68ff5
clang/test/CodeGenCXX/lambda-expressions.cpp: Relax expression for -Asserts.
...
"entry:" is not met in -Asserts build.
llvm-svn: 170175
2012-12-14 02:35:04 +00:00
Greg Clayton
136dff8725
Cleaned up the UUID mismatch just printing itself whenever it wants to by allowing an optional feedback stream to be passed along when getting the symbol vendor.
...
llvm-svn: 170174
2012-12-14 02:15:00 +00:00
Greg Clayton
fff17252a1
<rdar://problem/12878674>
...
Remove debug asserts.
llvm-svn: 170173
2012-12-14 02:13:44 +00:00
Nadav Rotem
d3a3c9fdd5
revert r170166 - disable the loop vectorizer.
...
llvm-svn: 170172
2012-12-14 01:57:00 +00:00
Sean Callanan
2dd8b49d05
Rmoved the old LLVM disassembler based on libedis.
...
llvm-svn: 170171
2012-12-14 01:29:59 +00:00
Ted Kremenek
45bb8db372
Refactor dump methods to make RegionBindingsRef printable in the debugger.
...
llvm-svn: 170170
2012-12-14 01:23:13 +00:00
Sean Callanan
06119a17ce
Made the struct test case actually use an expression
...
instead of falling through to the "frame variable"
code.
llvm-svn: 170169
2012-12-14 00:56:57 +00:00