Benjamin Kramer
379018b2da
Fix a C++11 UDL conflict.
...
Still not fixed in the standard ;)
llvm-svn: 154044
2012-04-04 20:33:56 +00:00
Greg Clayton
b8a54482b3
Use LLDB as the default debugger for launcherXPCService.
...
llvm-svn: 154043
2012-04-04 20:07:33 +00:00
Fariborz Jahanian
6bd2226037
objc-arc: provide a warning when 'receiver' of a message is 'weak'
...
in arc mode and opted-in with -Wreceiver-is-weak flag.
// rdar://10225276
llvm-svn: 154042
2012-04-04 20:05:25 +00:00
Greg Clayton
3c18cd3de1
Fixed the C++11 #defines that wrap std::weak_ptr to actually use std::weak_ptr.
...
llvm-svn: 154041
2012-04-04 20:03:33 +00:00
Ted Kremenek
dc53f0094b
Look through chains of 'x = y = z' when employing silencing heuristics in the DeadStoresChecker.
...
Fixes <rdar://problem/11185138>.
llvm-svn: 154040
2012-04-04 19:58:03 +00:00
Pete Cooper
8a3dc0ed8c
f16 FREM can now be legalized by promoting to f32
...
llvm-svn: 154039
2012-04-04 19:36:31 +00:00
Akira Hatanaka
9705c865d9
Fix LowerGlobalAddress to produce instructions with the correct relocation
...
types for N32 ABI. Add new test case and update existing ones.
llvm-svn: 154038
2012-04-04 19:02:38 +00:00
Fariborz Jahanian
7ebeedea6c
modern objc translator. Add more
...
rewriter specific option to cc1 with -rewrite-objc.
// rdar://11143173
llvm-svn: 154037
2012-04-04 18:50:28 +00:00
Akira Hatanaka
591ecdd7c1
Fix LowerJumpTable to produce instructions with the correct relocation
...
types for N32 ABI. Test case will be updated after the patch that fixes
TargetLowering::getPICJumpTableRelocBase is checked in.
llvm-svn: 154036
2012-04-04 18:31:32 +00:00
Fariborz Jahanian
b248221686
Remove unused argument.
...
llvm-svn: 154035
2012-04-04 18:28:00 +00:00
Akira Hatanaka
b3a2b8c199
Fix LowerConstantPool to produce instructions with the correct relocation
...
types for N32 ABI and update test case.
llvm-svn: 154034
2012-04-04 18:26:12 +00:00
Jakob Stoklund Olesen
0a5b72f0e4
Implement ARMBaseInstrInfo::commuteInstruction() for MOVCCr.
...
A MOVCCr instruction can be commuted by inverting the condition. This
can help reduce register pressure and remove unnecessary copies in some
cases.
<rdar://problem/11182914>
llvm-svn: 154033
2012-04-04 18:23:42 +00:00
Jakob Stoklund Olesen
92fd79a639
Remove spurious debug output.
...
llvm-svn: 154032
2012-04-04 18:23:38 +00:00
Akira Hatanaka
aeff24e424
Fix LowerBlockAddress to produce instructions with the correct relocation
...
types for N32 ABI and update test case.
llvm-svn: 154031
2012-04-04 18:22:53 +00:00
Ted Kremenek
5a10f08b52
Include the "issue context" (e.g. function or method) where a static analyzer issue occurred in the plist output.
...
Fixes <rdar://problem/11004527>
llvm-svn: 154030
2012-04-04 18:11:35 +00:00
Douglas Gregor
b61e809b42
Move the computation of the lambda mangling information (mangling
...
number + context) to the point where we initially start defining the
lambda, so that the linkage won't change when that information is made
available. Fixes the assertion in <rdar://problem/11182962>.
Plus, actually mangle the context of lambdas properly.
llvm-svn: 154029
2012-04-04 17:40:10 +00:00
Enrico Granata
f18c03e49e
Attempt at fixing a crasher where summary strings where looping endlessly.
...
llvm-svn: 154028
2012-04-04 17:34:10 +00:00
Enrico Granata
0249fba8c3
Fixing a potential crasher where Python would assume we have no thread state while clearing out an SBDebugger which was acquiring input from the interactive interpreter
...
llvm-svn: 154027
2012-04-04 17:31:29 +00:00
Enrico Granata
8d4a8010cf
Adding a new --python-function (-F) option to breakpoint command add. The option allows the user to specify a Python function name instead of a Python oneliner or interactive script input as a breakpoint command
...
llvm-svn: 154026
2012-04-04 17:30:31 +00:00
Fariborz Jahanian
f264d5dc01
objective-c modern translation. Remove commenting out
...
of extern "C". // rdar://11169733
llvm-svn: 154025
2012-04-04 17:16:15 +00:00
Bob Wilson
8c9356b3d8
Simplify test a bit now that it's not actually running cc1plus.
...
llvm-svn: 154018
2012-04-04 14:43:40 +00:00
NAKAMURA Takumi
67458e3696
clang/test/Tooling/clang-check.cpp: Mark it as XFAIL mingw,msvc for now.
...
It seems JSON parser doesn't like path separator '\' on Win32 hosts.
llvm-svn: 154017
2012-04-04 14:35:23 +00:00
NAKAMURA Takumi
3a64a4b1ec
Tooling.cpp: Reorder inclusions according to the conding standards.
...
llvm-svn: 154016
2012-04-04 13:59:41 +00:00
NAKAMURA Takumi
f0c8779db4
Tooling.cpp: Don't refer to $ENV{PWD}. Use llvm::sys::fs instead.
...
$ENV{PWD} is not expected to be set on all hosts.
llvm-svn: 154015
2012-04-04 13:59:36 +00:00
Hongbin Zheng
e1fd20172b
Add testcase for r154007, when a function has the optsize attribute,
...
the loop should be unrolled according the value of OptSizeUnrollThreshold.
llvm-svn: 154014
2012-04-04 13:24:40 +00:00
David Chisnall
5221a947a5
Don't crash (assert failure) when generating blocks for C++ types with a non-const copy constructor.
...
This was caused by the code deciding the number of fields in the byref structure using a different test to the part of the code creating the GEPs into said structure.
llvm-svn: 154013
2012-04-04 13:07:13 +00:00
Manuel Klimek
d01a99ea41
Updated release notes for tooling.
...
llvm-svn: 154012
2012-04-04 12:53:16 +00:00
Rafael Espindola
ba0a6cabb8
Always compute all the bits in ComputeMaskedBits.
...
This allows us to keep passing reduced masks to SimplifyDemandedBits, but
know about all the bits if SimplifyDemandedBits fails. This allows instcombine
to simplify cases like the one in the included testcase.
llvm-svn: 154011
2012-04-04 12:51:34 +00:00
Benjamin Kramer
74875e6719
clangFrontend depends on clangEdit.
...
llvm-svn: 154010
2012-04-04 12:25:11 +00:00
Manuel Klimek
750caacbb2
Add the dependency on clang-check to clang-test, so clang-check
...
can be integration tested.
llvm-svn: 154009
2012-04-04 12:18:22 +00:00
Manuel Klimek
47c245a537
Adds a tooling library.
...
Provides an API to run clang tools (FrontendActions) as standalone tools,
or repeatedly in-memory in a process. This is useful for unit-testing,
map-reduce style applications, source transformation daemons or command line
tools.
The ability to run over multiple translation units with different command
line arguments enables building up refactoring tools that need to apply
transformations across translation unit boundaries.
See tools/clang-check/ClangCheck.cpp for an example.
llvm-svn: 154008
2012-04-04 12:07:46 +00:00
Hongbin Zheng
b21b865fe8
LoopUnrollPass: Use variable "Threshold" instead of "CurrentThreshold" when
...
reducing unroll count, otherwise the reduced unroll count is not taking
the "OptimizeForSize" attribute into account.
llvm-svn: 154007
2012-04-04 11:44:08 +00:00
Alexey Samsonov
61a331d594
[ASan] use correct C-version of strchr on Windows
...
llvm-svn: 154006
2012-04-04 11:36:47 +00:00
Benjamin Kramer
ab90ebe917
Don't actually execute gcc during testing.
...
llvm-svn: 154005
2012-04-04 09:05:21 +00:00
Benjamin Kramer
a1355d17ca
Move yaml::Stream's dtor out of line so it can see Scanner's dtor.
...
llvm-svn: 154004
2012-04-04 08:53:34 +00:00
Benjamin Kramer
e43bde73aa
Implement DwarfLLVMRegPair::operator< without violating asymmetry.
...
MSVC8 verifies this.
llvm-svn: 154002
2012-04-04 08:24:08 +00:00
Bob Wilson
5b6411591c
Add a testcase for svn r153854.
...
llvm-svn: 154001
2012-04-04 07:06:30 +00:00
Richard Smith
25ec9d6b38
Fix diagnostic typos: "non-template arguments" vs "non-type template arguments".
...
No test updates: we don't appear to have any test coverage for these diagnostics!
llvm-svn: 154000
2012-04-04 06:47:16 +00:00
Richard Smith
f016bbcc61
For PR11916: Add support for g++'s __int128 keyword. Unlike __int128_t, this is
...
a type specifier and can be combined with unsigned. This allows libstdc++4.7 to
be used with clang in c++98 mode.
Several other changes are still required for libstdc++4.7 to work with clang in
c++11 mode.
llvm-svn: 153999
2012-04-04 06:24:32 +00:00
Douglas Gregor
0e60cd78cc
When performing template argument deduction for an initializer list,
...
be sure to perform the argument type adjustments in
[temp.deduct.call]p2, e.g., array decay.
And, when performing these deductions in the context of 'auto', make
sure that we're deducing the P' in std::initializer_list<P'> rather
than the whole initializer list.
Together, this makes code like
for( auto s : {"Deferred", "New", "Open", "Review"}) { }
work properly.
llvm-svn: 153998
2012-04-04 05:10:53 +00:00
Craig Topper
34487838bf
Convert assert(false) followed by a return to llvm_unreachable
...
llvm-svn: 153997
2012-04-04 04:55:46 +00:00
Craig Topper
4c7d995029
Remove default case from switch that was already covering all cases.
...
llvm-svn: 153996
2012-04-04 04:42:42 +00:00
Douglas Gregor
bf13895a4b
Dependent-sequence initialization of a single element can be direct
...
list-initialization. Loosen an over-eager assertion to fix PR12453.
llvm-svn: 153995
2012-04-04 04:06:51 +00:00
Argyrios Kyrtzidis
4a1049c8a2
[preprocessor] In Preprocessor::CachingLex() check whether there were more tokens
...
cached during the non-cached lex, otherwise we are going to drop them.
Fixes a bogus "_Pragma takes a parenthesized string literal" error when
expanding consecutive _Pragmas in a macro argument.
Part of rdar://11168596
llvm-svn: 153994
2012-04-04 02:57:01 +00:00
John McCall
b73bc9af60
When computing the conversion sequence in overload resolution
...
for converting an empty list to a scalar, be sure to initialize
the source and destination types so that comparison of conversion
sequences will work in case there are multiple viable candidates.
llvm-svn: 153993
2012-04-04 02:40:27 +00:00
Nick Lewycky
a995a47e38
If something already instantiated is reinstantiated as an explicit definition,
...
keep the latter.
No test. This was noticed when poking around something else with GDB. I'm not
able to figure out a testcase that would break due to this bug. Sorry.
llvm-svn: 153992
2012-04-04 02:38:36 +00:00
John McCall
152c9919e9
ErrorUnsupported on array cookies in the MS C++ ABI code;
...
patch by Timur Iskhodzhanov.
llvm-svn: 153990
2012-04-04 01:33:45 +00:00
John McCall
3abee49d1c
Enter an expression evaluation context when parsing
...
statement-expressions. Prevents cleanups and such from being
claimed by the first full-expression in the block.
llvm-svn: 153989
2012-04-04 01:27:53 +00:00
Ted Kremenek
34b4546c06
Fix dead store warning.
...
llvm-svn: 153988
2012-04-04 00:55:33 +00:00
Ted Kremenek
56458cab04
Change BugReporter's usage of IsCachedDiagnostic to only impact pruning diagnostics emitted to the
...
console, and leave it up to PathDiagnosticConsumer to unique reports with the shortest path.
llvm-svn: 153987
2012-04-04 00:55:29 +00:00