Johnny Chen
6561d15dcb
Add comment describing the interaction of WantsRawCommandString()/WantsCompletion() with the completion mechanism.
...
llvm-svn: 148521
2012-01-20 00:59:19 +00:00
Bill Wendling
9249261858
When lowering the 'resume' instruction, look to see if we can eliminate the
...
'insertvalue' instructions that recreate the structure returned by the
'landingpad' instruction. Because the 'insertvalue' instruction isn't supported
by FastISel, this can save a bit of time during -O0 compilation.
llvm-svn: 148520
2012-01-20 00:53:28 +00:00
Anna Zaks
3b754b25bd
[analyzer] Add socket API as a source of taint.
...
llvm-svn: 148518
2012-01-20 00:11:19 +00:00
Anna Zaks
282dc1437f
[analyzer] Skip casts when determining taint dependencies + pretty
...
printing.
llvm-svn: 148517
2012-01-20 00:11:16 +00:00
Anna Zaks
43de767b55
[analyzer] Add a utility method that allows to find the macro name used
...
at the given location.
This could be useful when checkers' logic depends on whether a function
is called with a given macro argument.
llvm-svn: 148516
2012-01-20 00:11:12 +00:00
Anna Zaks
9796f2aa56
[analyzer] Cleanup of Symbol dump methods.
...
This solves a the issue of crashing gdb when dumping a symbol; +
consistent vitualization.
llvm-svn: 148515
2012-01-20 00:11:08 +00:00
Anna Zaks
03e0651ff3
[analyzer] www: A minor cleanup to the dev manual.
...
llvm-svn: 148514
2012-01-20 00:11:04 +00:00
Eli Friedman
32c7c25dcb
Support MSVC x86-32 sret convention. PR11688. Patch by Joe Groff.
...
llvm-svn: 148513
2012-01-20 00:05:46 +00:00
Sean Callanan
0caa21cb25
Made IsArrayOfScalarType handle typedefs correctly.
...
We should ultimately introduce GetAs...Type
functions in all cases where we have Is...Type
functions that know how to look inside typedefs.
llvm-svn: 148512
2012-01-19 23:54:24 +00:00
Howard Hinnant
21fa1887e0
Enable full functionality of shared_ptr<const void> by adding allocator<const void>. Credit to John Hurley for discovering this bug.
...
llvm-svn: 148508
2012-01-19 23:15:22 +00:00
Sean Callanan
d8186490c1
Integrated a patch for the MCJIT that inhibits
...
a memory leak.
llvm-svn: 148507
2012-01-19 23:01:46 +00:00
Richard Smith
ab3fe0f9ba
Further testing for instantiation of out-of-line constexpr static data member
...
template definitions.
llvm-svn: 148506
2012-01-19 22:50:02 +00:00
Richard Smith
45bb45523f
An instantiation of a constexpr static data member in a class template is
...
constexpr.
llvm-svn: 148505
2012-01-19 22:46:17 +00:00
Johnny Chen
6f99b63718
rdar://problem/10724187
...
http://llvm.org/viewvc/llvm-project?rev=148491&view=rev check in broke the argument completion
for "settings set th", followed by TAB. Provide a way for commands who want raw commands to
hook into the completion mechanism.
llvm-svn: 148500
2012-01-19 22:16:06 +00:00
Richard Trieu
4972a6dd08
Extend the error of invalid token after declarations to include fixits for
...
!=, %=, ^=, &=, *=, -=, |=, /=, <<=, <=, >=, and >>= to =.
llvm-svn: 148499
2012-01-19 22:01:51 +00:00
Chad Rosier
89e0d22cc6
Fix typo.
...
llvm-svn: 148497
2012-01-19 21:50:08 +00:00
Benjamin Kramer
704fe866b2
Silence set-but-unused warning.
...
llvm-svn: 148496
2012-01-19 21:12:23 +00:00
Benjamin Kramer
116e99a469
Silence warnings about mixing enums.
...
llvm-svn: 148495
2012-01-19 21:11:13 +00:00
Jim Ingham
6657d09e8b
ValueObjectRegister type value objects should obey the format in ValueAsCString.
...
<rdar://problem/10719481>
llvm-svn: 148494
2012-01-19 21:10:56 +00:00
Owen Anderson
4b53e188c1
Add a dump() implementation for sub-instruction MCOperands.
...
llvm-svn: 148493
2012-01-19 19:32:20 +00:00
Owen Anderson
c67903cc19
Add a new form of MCOperand, for representing sub-instructions. This is intended for supporting bundles through the MC layer, rather than lowering them pre-MC as we currently do for Thumb2 IT blocks. Since these sub-instruction operands hold pointers to the sub-instructions, it is the responsibility of the target's AsmPrinter to provide storage for them for the duration of the EmitInstruction() call.
...
llvm-svn: 148492
2012-01-19 19:24:37 +00:00
Johnny Chen
a28b89c700
rdar://problem/10712130
...
Fixed an issue where backtick char is not properly honored when setting the frame-format variable, like the following:
(lldb) settings set frame-format frame #${frame.index}: ${frame.pc}{ ${module.file.basename}{`${function.name-with-args}${function.pc-offset}}}{ at ${line.file.basename}:${line.number}}\n
(lldb) settings show frame-format
frame-format (string) = "frame #${frame.index}: ${frame.pc}{ `${module.file.basename}{${function.name-with-args}${function.pc-offset}}}{` at ${line.file.basename}:${line.number}}\n"
(lldb)
o CommandObjectSettings.h/.cpp:
Modify the command object impl to require raw command string instead of parsed command string,
which also fixes an outstanding issue that customizing the prompt with trailing spaces doesn't
work.
o Args.cpp:
During CommandInterpreter::HandleCommand(), there is a PreprocessCommand phase which already
strips/processes pairs of backticks as an expression eval step. There's no need to treat
a backtick as starting a quote.
o TestAbbreviations.py and change_prompt.lldb:
Fixed incorrect test case/logic.
o TestSettings.py:
Remove expectedFailure decorator.
llvm-svn: 148491
2012-01-19 19:22:41 +00:00
Dan Gohman
8ee108bf98
Set the "tail" flag on pattern-matched objc_storeStrong calls.
...
rdar://10531041.
llvm-svn: 148490
2012-01-19 19:14:36 +00:00
Devang Patel
f83dcfd052
Post process 'and', 'sub' instructions and select better encoding, if available.
...
llvm-svn: 148489
2012-01-19 18:40:55 +00:00
Sean Callanan
2e93a2ad21
Fixed a problem where Objective-C classes that were
...
originally imported from symbols for the expression
parser didn't get their superclasses set properly.
llvm-svn: 148488
2012-01-19 18:23:06 +00:00
Nick Lewycky
219e6bcb71
Actually, this code handles wrapped sets just fine. Noticed by inspection.
...
llvm-svn: 148487
2012-01-19 18:19:42 +00:00
Devang Patel
2529dd9e00
Intel syntax: There is no need to create unary expr for simple negative displacement.
...
llvm-svn: 148486
2012-01-19 18:15:51 +00:00
Devang Patel
4a62ff9bcb
Post process 'xor', 'or' and 'cmp' instructions and select better encoding, if available.
...
llvm-svn: 148485
2012-01-19 17:53:25 +00:00
Argyrios Kyrtzidis
7838a2bffb
Introduce Lexer::getSourceText() that returns a string for the source
...
that the given source range encompasses.
llvm-svn: 148481
2012-01-19 15:59:19 +00:00
Argyrios Kyrtzidis
a99e02d019
Introduce Lexer::makeFileCharRange() that accepts a token source range
...
and returns a character range with file locations.
llvm-svn: 148480
2012-01-19 15:59:14 +00:00
Argyrios Kyrtzidis
1b07c344b4
For Lexer's isAt[Start/End]OfMacroExpansion add an out parameter for the macro
...
start/end location.
It is commonly needed after calling the function; with this way we avoid
recalculating it.
llvm-svn: 148479
2012-01-19 15:59:08 +00:00
Argyrios Kyrtzidis
d169911cc0
Add unit testing for Lexer.
...
llvm-svn: 148478
2012-01-19 15:59:01 +00:00
Evgeniy Stepanov
3f6840745c
Make the Android TSD workaround more reliable.
...
By scanning the thread list backwards.
llvm-svn: 148476
2012-01-19 13:57:45 +00:00
Evgeniy Stepanov
d296ad4e16
Workaround the self-cleaning TSD on Android.
...
llvm-svn: 148475
2012-01-19 13:37:31 +00:00
Alexander Potapenko
62b0d70e56
Remove a debugging Report() call.
...
llvm-svn: 148474
2012-01-19 13:34:15 +00:00
Evgeniy Stepanov
4c7eb477b5
Emit ARM EHABI unwinding instructions for 3 more Thumb instructions.
...
llvm-svn: 148473
2012-01-19 12:53:06 +00:00
Alexander Potapenko
3825e9770b
Minor fixes of the AsanProcMaps code on Mac:
...
-- make the load command scan linear (instead of quadratic)
-- do not create a nested AsanProcMaps instance for each address lookup
-- more comments
llvm-svn: 148472
2012-01-19 12:44:06 +00:00
Evgeniy Stepanov
5dfe9f2b2f
Extend unwind.h with the ARM unwinder interface.
...
These declarations come from the sample code in the
"Exception Handling ABI for the ARM Architecture" document.
llvm-svn: 148469
2012-01-19 11:39:05 +00:00
Evgeniy Stepanov
84c44a8b8b
EHABI-based stack trace on ARM.
...
The change removes the unused FLAG_fast_unwind, and forces EHABI-based unwind
on ARM, and fast (FP-based) unwind everywhere else.
llvm-svn: 148468
2012-01-19 11:34:18 +00:00
Craig Topper
a875b7ccc7
Folding table additions and fixes for AVX.
...
llvm-svn: 148467
2012-01-19 08:50:38 +00:00
Craig Topper
80576e8d1f
Merge 128-bit and 256-bit SHUFPS/SHUFPD handling.
...
llvm-svn: 148466
2012-01-19 08:19:12 +00:00
Evan Cheng
c2679b2958
More bundle related API additions.
...
llvm-svn: 148465
2012-01-19 07:47:03 +00:00
Evan Cheng
d42aba53e6
Rewriter should definitly rewrite instructions inside bundles.
...
llvm-svn: 148464
2012-01-19 07:46:36 +00:00
Chris Lattner
719f6a9947
Introduce a new MutableArrayRef class, which refers to a series of mutable
...
T's that are consequtively in memory.
llvm-svn: 148463
2012-01-19 06:34:52 +00:00
Evan Cheng
6ca2272183
Enhance finalizeBundle to return end of bundle iterator because it makes sense.
...
llvm-svn: 148462
2012-01-19 06:13:10 +00:00
Greg Clayton
bdf3a01bb0
Allow a way to track all allocations for our intrusive ref counted pointers.
...
It is disabled by default, but can be enabled to track down shared pointer
cycles.
llvm-svn: 148461
2012-01-19 04:44:00 +00:00
Greg Clayton
e42ae8497f
Fixed an issue with the Instruction subclasses where the strings might
...
be fetched too many times and the DisassemblerLLVM was appending to strings
when the opcode, mnemonic and comment accessors were called multiple times
and if any of the strings were empty.
Also fixed the test suite failures from recent Objective C modifications.
llvm-svn: 148460
2012-01-19 03:24:53 +00:00
Jim Grosbach
235c8d2d94
ARM assembly diagnostic caret in better position for FPImm.
...
llvm-svn: 148459
2012-01-19 02:47:30 +00:00
Sean Callanan
a9bc065607
Fixed a problem where maintaining the ObjCInterfaceMap
...
for each ObjCInterfaceDecl was imposing performance
penalties for Objective-C apps. Instead, we now use
the normal function query mechanisms, which use the
relevant accelerator tables.
This fix also includes some modifications to the
SymbolFile which allow us to find Objective-C methods
and report their Clang Decls correctly.
llvm-svn: 148457
2012-01-19 02:17:40 +00:00
Jim Grosbach
44e5c39c29
Thumb2 relaxation for tADR to t2ADR.
...
llvm-svn: 148456
2012-01-19 02:09:38 +00:00