Johnny Chen
39d7d4f056
Added [-o <one-liner>] to the "breakpoint command add" lldb command to be able
...
to specify a one-liner (either scripting or lldb command) inline.
Refactored CommandObjectBreakpointCommandAdd::Execute() a little bit and added
some comments.
Sn now, we use:
breakpoint command add -p 1 -o "conditional_break.stop_if_called_from_a()"
to specify a Python one-liner as the callback for breakpoint #1 .
llvm-svn: 113672
2010-09-11 00:18:09 +00:00
Dale Johannesen
3a12890338
Add x86mmx to TableGen.
...
llvm-svn: 113671
2010-09-11 00:16:46 +00:00
Bill Wendling
27dddd1fd1
Rename ConvertToSetZeroFlag to something more general.
...
llvm-svn: 113670
2010-09-11 00:13:50 +00:00
Jim Ingham
a4601b6496
Don't use lldb syntax in the gdb examples...
...
llvm-svn: 113669
2010-09-11 00:03:03 +00:00
Bill Wendling
d0a5f4e238
No need to recompute the SrcReg and CmpValue.
...
llvm-svn: 113666
2010-09-10 23:46:12 +00:00
Bill Wendling
041230014c
Move some of the decision logic for converting an instruction into one that sets
...
the 'zero' bit down into the back-end. There are other cases where this logic
isn't sufficient, so they should be handled separately.
llvm-svn: 113665
2010-09-10 23:34:19 +00:00
Sebastian Redl
a8bac37bb1
Test destructors in delete expressions and of temporaries for throwing.
...
llvm-svn: 113664
2010-09-10 23:27:10 +00:00
John McCall
db76892e72
Support in-class initialization of static const floating-point data members.
...
llvm-svn: 113663
2010-09-10 23:21:22 +00:00
Eric Christopher
72497e5d90
Start sketching out ARM fast-isel calls.
...
llvm-svn: 113662
2010-09-10 23:18:12 +00:00
Jim Ingham
bc7d7c8119
Few clarifications.
...
llvm-svn: 113661
2010-09-10 23:12:45 +00:00
Jim Ingham
53c47f1e2f
Move the "Object Description" into the ValueObject, and the add an API to
...
SBValue to access it. For now this is just the result of ObjC NSPrintForDebugger,
but could be extended. Also store the results of the ObjC Object Printer in a
Stream, not a ConstString.
llvm-svn: 113660
2010-09-10 23:12:17 +00:00
Eric Christopher
cc766a20d3
For consistency.
...
llvm-svn: 113659
2010-09-10 23:10:30 +00:00
Jim Ingham
baae168e63
Little bit of line wrapping cleanup.
...
Mainly ExecuteFunction should save & restore the currently selected Thread & Frame.
llvm-svn: 113658
2010-09-10 23:07:48 +00:00
Jim Ingham
59ce7fe05f
When the debugger updates its symbol context, if no thread or frame are selected select the first thread's 0th frame.
...
llvm-svn: 113657
2010-09-10 23:06:30 +00:00
Douglas Gregor
c7a7d92ad2
Fix my silly sorting predicate. I hate integer-to-bool conversions
...
llvm-svn: 113656
2010-09-10 23:05:54 +00:00
Jim Ingham
39bbba498c
Always look up the symbols with FindSymbolByID since we are minimizing the symbol list.
...
llvm-svn: 113655
2010-09-10 23:02:28 +00:00
Eric Christopher
cc1367851b
Newline at end of file.
...
llvm-svn: 113654
2010-09-10 22:46:03 +00:00
Bob Wilson
f3ecfd0e53
Fix a comment typo.
...
llvm-svn: 113653
2010-09-10 22:42:21 +00:00
Eric Christopher
1c06917f15
Split out some of the calling convention bits so that they can be
...
used for fast-isel.
llvm-svn: 113652
2010-09-10 22:42:06 +00:00
Benjamin Kramer
8c35fb0739
Teach InstructionSimplify to fold (A & B) & A -> A & B and (A | B) | A -> A | B.
...
Reassociate does this but it doesn't catch all cases (e.g. if the operands are i1).
llvm-svn: 113651
2010-09-10 22:39:55 +00:00
Sebastian Redl
b8a76c42b5
Address Doug's comments.
...
llvm-svn: 113650
2010-09-10 22:34:40 +00:00
Douglas Gregor
ca3682d486
Make sure we're producing a newline in the preprocessed output before
...
emitting a #pragma, whenever one is needed. Fixes <rdar://problem/8417307>.
llvm-svn: 113648
2010-09-10 22:27:29 +00:00
Gabor Greif
2f5f696b66
typoes
...
llvm-svn: 113647
2010-09-10 22:25:58 +00:00
Greg Clayton
40b8d8a402
Make sure the address passed into SymbolContext::DumpStopContext() is valid before trying to calculate any offsets.
...
llvm-svn: 113645
2010-09-10 22:05:05 +00:00
Dale Johannesen
95b67aff5b
Add missing X86 MMX declarations. Hopefully fixes buildbot?
...
llvm-svn: 113643
2010-09-10 21:58:02 +00:00
Sebastian Redl
e56be2f72c
Eli helped me understand how evaluation contexts work.
...
llvm-svn: 113642
2010-09-10 21:57:27 +00:00
Bill Wendling
aee679bf35
Modify the comparison optimizations in the peephole optimizer to update the
...
iterator when an optimization took place. This allows us to do more insane
things with the code than just remove an instruction or two.
llvm-svn: 113640
2010-09-10 21:55:43 +00:00
Daniel Dunbar
b5b7d1a415
Driver: Set TOOL_NO_EXPORTS when building a "production" compiler, we don't
...
currently expect that to be useful for plugins, and this is important for
startup performance:
--
ddunbar@lordcrumb:tmp$ touch empty.c
ddunbar@lordcrumb:tmp$ runN 100 ~/llvm.obj.64/Release/bin/clang -c empty.c
name avg min med max SD total
user 0.0054 0.0052 0.0054 0.0055 0.0000 0.5350
sys 0.0084 0.0090 0.0078 0.0087 0.0008 0.8390
wall 0.0149 0.0149 0.0149 0.0149 0.0003 1.4943
ddunbar@lordcrumb:tmp$ runN 100 ~/llvm.obj.64/Release/bin/clang -c empty.c
name avg min med max SD total
user 0.0036 0.0036 0.0036 0.0038 0.0000 0.3646
sys 0.0072 0.0071 0.0068 0.0070 0.0006 0.7158
wall 0.0123 0.0123 0.0122 0.0136 0.0003 1.2262
--
llvm-svn: 113638
2010-09-10 21:42:03 +00:00
Jim Grosbach
1f77ee5691
Add a missing case to duplicateCPV() for LSDA constants. Add a FIXME. rdar://8302157
...
llvm-svn: 113637
2010-09-10 21:38:22 +00:00
Sebastian Redl
c48e6e9f28
Follow Ted's example and hide CXXNoexceptExpr's setters from all but serialization.
...
llvm-svn: 113634
2010-09-10 21:15:56 +00:00
Michael J. Spencer
dc38d36ccb
CMake: Get rid of LLVMLibDeps.cmake and export the libraries normally.
...
llvm-svn: 113632
2010-09-10 21:14:25 +00:00
Michael J. Spencer
0881f4a367
CMake: Update to use standard CMake dependency tracking facilities instead
...
of whatever we were using before...
llvm-svn: 113631
2010-09-10 21:13:16 +00:00
Sebastian Redl
8c40ba392c
Test CXXNoexceptExpr codegen and serialization.
...
llvm-svn: 113630
2010-09-10 21:04:03 +00:00
Sebastian Redl
b67655fc6d
Implement CXXNoexceptExpr codegen.
...
llvm-svn: 113629
2010-09-10 21:04:00 +00:00
Sebastian Redl
4fa4a6b85e
Add another small test case.
...
llvm-svn: 113628
2010-09-10 21:03:58 +00:00
Sebastian Redl
9ac55dd8e4
Serialization support for CXXNoexceptExpr.
...
llvm-svn: 113627
2010-09-10 20:55:54 +00:00
Ted Kremenek
ba1a68bbc3
Make 'setProperty()', 'setBase()', and 'setLocation()' private in ObjCPropertyRefExpr, and friend ASTStmtReader so that it is the only class that can use them.
...
llvm-svn: 113626
2010-09-10 20:55:52 +00:00
Sebastian Redl
dbd14bdefc
Tests for noexcept in templates.
...
llvm-svn: 113625
2010-09-10 20:55:50 +00:00
Sebastian Redl
5f0180d815
First version of a testcase, plus fixes.
...
llvm-svn: 113624
2010-09-10 20:55:47 +00:00
Sebastian Redl
4202c0f2a9
Define and implement CXXNoexceptExpr. Create it in Sema.
...
llvm-svn: 113623
2010-09-10 20:55:43 +00:00
Sebastian Redl
22e3a93586
Parse the noexcept operator and stub out sema.
...
llvm-svn: 113622
2010-09-10 20:55:37 +00:00
Sebastian Redl
ce354af895
Implement Expr::CanThrow, a function that applies the noexcept operator rules to expressions.
...
llvm-svn: 113621
2010-09-10 20:55:33 +00:00
Sebastian Redl
2b1832e445
Make CallExpr::getCalleeDecl look through pointer derefs.
...
llvm-svn: 113620
2010-09-10 20:55:30 +00:00
Sebastian Redl
7ec4c282f2
Fix a comment.
...
llvm-svn: 113619
2010-09-10 20:55:27 +00:00
Dale Johannesen
baa5d045c9
Add X86 MMX type to bitcode and Type.
...
(The Ada bindings probably need it too, but all the
obvious places to change say "do not edit this file".)
llvm-svn: 113618
2010-09-10 20:55:01 +00:00
Nick Kledzik
d1d6f2ca46
<rdar://problem/8279559> [libstdcxx] use new linker options to make symbols non-weak
...
llvm-svn: 113616
2010-09-10 20:42:36 +00:00
Bill Wendling
55165fed5d
Use StringRef which performs the "early exit" when compared against a constant
...
string.
llvm-svn: 113615
2010-09-10 20:42:26 +00:00
Devang Patel
6095d818e5
Add DEBUG message.
...
llvm-svn: 113614
2010-09-10 20:32:09 +00:00
Ted Kremenek
0a3f523614
Polish diagnostics for null dereferences via ObjC ivar accesses. Finishes up <rdar://problem/6352035>.
...
llvm-svn: 113612
2010-09-10 20:20:49 +00:00
Greg Clayton
b57a127a53
There was a check to make sure that the frame had a valid function before the expression parser would allow decl lookups which was not needed. After removing this you can evaluate expressions correctly when stopped in a frame that only has a symbol or has no symbol context at all.
...
llvm-svn: 113611
2010-09-10 20:20:35 +00:00