Douglas Gregor
16443fdd31
Teach clang_getCursorReferenced() that a
...
CXXConstructorExpr/CXXTemporaryObjectExpr references the constructor
it calls. Then, tweak clang_getCursor() to prefer such a call over a
type reference to the type being called.
llvm-svn: 118297
2010-11-05 21:11:19 +00:00
Jim Grosbach
45846666f1
Trailing whitespace.
...
llvm-svn: 118296
2010-11-05 20:41:12 +00:00
Jim Grosbach
ff9e507d8e
MC'ize simple ARMConstantValue entry emission (with a FIXME).
...
llvm-svn: 118295
2010-11-05 20:34:24 +00:00
Benjamin Kramer
80bb80f5fc
Put class into an anonymous namespace.
...
llvm-svn: 118294
2010-11-05 19:56:38 +00:00
Benjamin Kramer
396dcf356f
Put class into an anonymous namespace.
...
llvm-svn: 118293
2010-11-05 19:56:37 +00:00
Owen Anderson
30c4892ea5
Add codegen and encoding support for the immediate form of vbic.
...
llvm-svn: 118291
2010-11-05 19:27:46 +00:00
Jim Ingham
399f1cafa6
Added the equivalent of gdb's "unwind-on-signal" to the expression command, and a parameter to control it in ClangUserExpression, and on down to ClangFunction.
...
llvm-svn: 118290
2010-11-05 19:25:48 +00:00
Jim Grosbach
2bab7570f5
Enable MachO writing for ARM/Darwin. Lots of stuff still doesn't work
...
(relocations, e.g.), but this will allow simple things to flow through.
llvm-svn: 118289
2010-11-05 18:50:35 +00:00
Jim Grosbach
46c2acbcb4
Allow targets to specify the MachO CPUType/CPUSubtype information.
...
llvm-svn: 118288
2010-11-05 18:48:58 +00:00
Jim Grosbach
c75bb744e1
syntaxunified directive is a no-op for MachO writing.
...
llvm-svn: 118287
2010-11-05 18:47:32 +00:00
Fariborz Jahanian
90d2e57ff7
Proper rewriting of block envokation with
...
qualified ObjC pointer types in its argument list.
// rdar: //8608902
llvm-svn: 118286
2010-11-05 18:34:46 +00:00
Johnny Chen
a29c14e40d
Fix comments.
...
llvm-svn: 118285
2010-11-05 18:10:11 +00:00
Jim Ingham
e4caae4f48
Don't need both LIBLLDB_LOG_DYNAMIC_LOADER and LIBLLDB_LOG_SHLIB. Go with the former.
...
llvm-svn: 118284
2010-11-05 17:59:46 +00:00
Jim Ingham
d403f26bbe
Don't need both LIBLLDB_LOG_DYNAMIC_LOADER and LIBLLDB_LOG_SHLIB. Go with the former.
...
llvm-svn: 118283
2010-11-05 17:59:33 +00:00
Jim Ingham
3cbb931504
Don't need both LIBLLDB_LOG_DYNAMIC_LOADER and LIBLLDB_LOG_SHLIB. Go with the former.
...
llvm-svn: 118282
2010-11-05 17:59:19 +00:00
Jim Grosbach
b51745765a
Add v5 and v7 ARM CPU subtype values.
...
llvm-svn: 118281
2010-11-05 17:48:05 +00:00
Jim Grosbach
1df82e67d1
Add FIXME.
...
llvm-svn: 118280
2010-11-05 17:37:13 +00:00
Johnny Chen
9a6706bca4
Add comment about iterating over possible architecture and compiler combinations.
...
llvm-svn: 118279
2010-11-05 17:30:53 +00:00
Daniel Dunbar
087c3a321f
libclang: Enable requesting a larger stack for several libclang entry points
...
using "safety" threads.
llvm-svn: 118278
2010-11-05 17:21:46 +00:00
Johnny Chen
2f53b943e4
Make lldb dump fullpath instead of just basename when printing out frame or
...
thread descriptions. This allows for correctly finding and obeying the last
filename-and-line marker from the debugger.
Add a delay for gud-up and gud-down. This makes tracking filename-and-line
more reliable when moving up/down the stack.
llvm-svn: 118277
2010-11-05 16:51:44 +00:00
Anders Carlsson
e981a8c231
Expressions of type std::nullptr_t can be used as sentinels.
...
llvm-svn: 118276
2010-11-05 15:21:33 +00:00
Duncan Sands
6c25ca4f2b
When passing a parameter using the 'byval' mechanism, inline code needs to be used
...
to perform the copy, which may be of lots of memory [*]. It would be good if the
fall-back code generated something reasonable, i.e. did the copy in a loop, rather
than vast numbers of loads and stores. Add a note about this. Currently target
specific code seems to always kick in so this is more of a theoretical issue rather
than a practical one now that X86 has been fixed.
[*] It's amazing how often people pass mega-byte long arrays by copy...
llvm-svn: 118275
2010-11-05 15:20:29 +00:00
Daniel Dunbar
b7383e6d80
libclang: Add some support for running certain entry points in a "safety"
...
thread, primarily to get a larger stack.
- Yes, I feel dirty.
llvm-svn: 118274
2010-11-05 07:19:31 +00:00
Daniel Dunbar
9aff85e41e
Fix 80-col violas.
...
llvm-svn: 118273
2010-11-05 07:19:21 +00:00
Daniel Dunbar
f4d90ba9f5
CrashRecoveryContext: Add RunSafelyOnThread helper function.
...
llvm-svn: 118272
2010-11-05 07:19:09 +00:00
Sean Callanan
2a39652303
Fixed error handling when the utility functions
...
that check pointer validity fail to parse. Now
lldb does not crash in that case. Also added
support for checking Objective-C class validity
in the Version 1 runtime as well as Version 2
runtimes with varying levels of available debug
support.
llvm-svn: 118271
2010-11-05 00:57:06 +00:00
Jim Ingham
5822173bc8
Handle stepping through ObjC vtable trampoline code.
...
llvm-svn: 118270
2010-11-05 00:18:21 +00:00
Anders Carlsson
7da7cc568f
Implement [over.ics.rank]p4: A conversion that does not convert an std::nullptr_t to bool is better than one than does.
...
llvm-svn: 118269
2010-11-05 00:12:09 +00:00
Jim Ingham
f7f4f50113
Added a setting to "log timer" so you can see the incremental timings as well:
...
log timer increment true/false
llvm-svn: 118268
2010-11-04 23:19:21 +00:00
Jim Ingham
302448352c
Added a top level Timer to the interpreter execute command. Also added an option to pass the depth to "log timer enable". That allows you to time just command execution with:
...
log timer enable 1
<command>
log timer dump
llvm-svn: 118267
2010-11-04 23:08:45 +00:00
Jim Ingham
932725fa11
Added a top level Timer to the interpreter execute command. Also added an option to pass the depth to "log timer enable". That allows you to time just command execution with:
...
log timer enable 1
<command>
log timer dump
llvm-svn: 118266
2010-11-04 23:08:26 +00:00
Johnny Chen
c1fa8c5644
Remove the @skip decorators for assertion aborts. Jim fixed them in r118255.
...
llvm-svn: 118265
2010-11-04 22:49:00 +00:00
Jason Molenda
744aa8a14d
Use the new native unwinder by default.
...
llvm-svn: 118264
2010-11-04 22:29:24 +00:00
Duncan Sands
98512315f7
When passing a huge parameter using the byval mechanism, a long
...
sequence of loads and stores was being generated to perform the
copy on the x86 targets if the parameter was less than 4 byte
aligned, causing llc to use up vast amounts of memory and time.
Use a "rep movs" form instead. PR7170.
llvm-svn: 118260
2010-11-04 21:16:46 +00:00
Benjamin Kramer
112fc6cdfb
Adjust return type of thread_runner.
...
llvm-svn: 118259
2010-11-04 19:11:31 +00:00
John McCall
954b5de0d8
Use the real keyword location when rebuilding an elaborated type instead of
...
making something up. Fixes PR8129.
llvm-svn: 118258
2010-11-04 19:04:38 +00:00
Benjamin Kramer
ed8b7bf9ed
Use arrays instead of constant-sized SmallVectors.
...
llvm-svn: 118257
2010-11-04 18:45:27 +00:00
Jim Ingham
2a5e0f03fb
Add a ObjC V1 runtime, and a generic AppleObjCRuntime plugin.
...
Also move the Checker creation into the Apple Runtime code.
llvm-svn: 118255
2010-11-04 18:30:59 +00:00
Rafael Espindola
38d0756b88
Add 118023 back, but with proper spelling for .uleb128/.sleb128.
...
llvm-svn: 118254
2010-11-04 18:17:08 +00:00
Johnny Chen
9b70bd4169
Add one @skip decorator for assertion abort:
...
@unittest2.skip("rdar://problem/8630601 Assertion failed: (result_valobj_sp.get()), function EvaluateExpression, file CommandObjectExpression.cpp, line 227.")
llvm-svn: 118252
2010-11-04 17:37:20 +00:00
Johnny Chen
0fcb0365e0
Add two @skip decorators for assertion abort:
...
@unittest2.skip("rdar://problem/8630601 Assertion failed: (result_valobj_sp.get()), function EvaluateExpression, file CommandObjectExpression.cpp, line 227.")
llvm-svn: 118251
2010-11-04 17:26:50 +00:00
Rafael Espindola
bbc0ac2236
Revert previous patch. Some targets don't support uleb and say
...
they do :-(
llvm-svn: 118250
2010-11-04 17:04:24 +00:00
Rafael Espindola
cfd6243940
MCize.
...
llvm-svn: 118249
2010-11-04 16:32:18 +00:00
Devang Patel
57c5a20364
Introduce DIBuilder. It is intended to be a front-end friendly interface to emit debuggging information entries in LLVM IR.
...
To create debugging information for a pointer, using DIBUilder front-end just needs
DBuilder.CreatePointerType(Ty, Size);
instead of
DebugFactory.CreateDerivedType(llvm::dwarf::DW_TAG_pointer_type,
TheCU, "", getOrCreateMainFile(),
0, Size, 0, 0, 0, OCTy);
llvm-svn: 118248
2010-11-04 15:01:38 +00:00
Devang Patel
a0148df273
Add getFile() to get DIFile of a DIType.
...
llvm-svn: 118247
2010-11-04 14:56:34 +00:00
Anders Carlsson
898b1fb1e2
Pass a -I flag when compiling nullptr.cpp so the typeinfo header can be found. This should fix the errors seen on the bot.
...
llvm-svn: 118246
2010-11-04 12:18:32 +00:00
Duncan Sands
71049f78ed
In the calling convention logic, ValVT is always a legal type,
...
and as such can be represented by an MVT - the more complicated
EVT is not needed. Use MVT for ValVT everywhere.
llvm-svn: 118245
2010-11-04 10:49:57 +00:00
Jason Molenda
504d3f51ff
Revert last checkin to DisassemblerLLVM.cpp; that was some temporary
...
debug printfs that got left behind by accident.
llvm-svn: 118244
2010-11-04 09:53:38 +00:00
Jason Molenda
c311c23402
Add #ifdef to easily switch between the current libunwind-remote based unwinder
...
or the native unwinder (UnwindLLDB). I'll make the native unwinder the default
once I check in with everyone tomorrow.
llvm-svn: 118243
2010-11-04 09:51:29 +00:00
Jason Molenda
311eb2deec
Revert last checking to ThreadGDBRemote.cpp; I accidentally checked
...
that in along with some cleanup work with the native unwinder code.
llvm-svn: 118242
2010-11-04 09:46:43 +00:00