- Oct 29, 2011
-
-
Sean Callanan authored
functions from ClangExpressionDeclMap to ClangASTSource. llvm-svn: 143276
-
Sean Callanan authored
AST importer on completing namespace mappings from ClangExpressionDeclMap to ClangASTSource. ClangASTSource now contains a TargetSP which it uses to lookup namespaces in all of a target's modules. I will use the TargetSP in the future to look up globals. llvm-svn: 143275
-
Johnny Chen authored
CommandInterpreter::PreprocessCommand() should not infinite loop when a target has not been specified yet. llvm-svn: 143274
-
Jason Molenda authored
from llvm TOT. llvm-svn: 143273
-
Greg Clayton authored
the path to the /Developer directory, and also bumped the Xcode project version for lldb-83 and debugserver-148. llvm-svn: 143269
-
Bill Wendling authored
llvm-svn: 143268
-
Bill Wendling authored
llvm-svn: 143267
-
Greg Clayton authored
command suffix: (lldb) expression/x 3+3 Since "expression" is a raw command that has options, we need to make sure the command gets its options properly terminated with a "--". Also fixed an issue where if you try to use the GDB command suffix on a command that doesn't support the "--gdb-format" command, it will report an appropriate error. For the fix above, you can query an lldb_private::Options object to see if it supports a long option by name. llvm-svn: 143266
-
Eli Friedman authored
llvm-svn: 143265
-
Jim Ingham authored
llvm-svn: 143264
-
Richard Smith authored
implicitly perform an lvalue-to-rvalue conversion if used on an lvalue expression. Also improve the documentation of Expr::Evaluate* to indicate which of them will accept expressions with side-effects. llvm-svn: 143263
-
Dan Gohman authored
llvm-svn: 143262
-
Johnny Chen authored
llvm-svn: 143261
-
Johnny Chen authored
This also helps break the infinite loop caused when target is null. So that we can have: $ /Volumes/data/lldb/svn/trunk/build/Debug/lldb (lldb) itob `0x123 - 0x321` 32 v 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0] (lldb) llvm-svn: 143260
-
Ted Kremenek authored
Start work on SerializedDiagnosticPrinter, a new DiagnosticConsumer that serializes out the diagnostics for a given translation unit to a bit code file. This is a WIP. The motivation for this new DiagnosticConsumer is to provide a way for tools invoking the compiler to get its diagnostics via a libclang interface, rather than textually parsing the compiler output. This gives us flexibility to change the compiler's textual output, but have a structured data format for clients to use to get the diagnostics via a stable API. I have no tests for this, but llvm-bcanalyzer so far shows that the emitted file is well-formed. More work to follow. llvm-svn: 143259
-
Fariborz Jahanian authored
ownership qualifier cast which won't work. // rdar://10244607 llvm-svn: 143258
-
Richard Smith authored
llvm-svn: 143257
-
Argyrios Kyrtzidis authored
Currently sorting by raw source location does work as intended but who knows what may change in the future.. llvm-svn: 143256
-
Argyrios Kyrtzidis authored
if we are not interested in the decl. llvm-svn: 143255
-
Greg Clayton authored
previous address only by the number of bytes consumed by the disassembly: (lldb) x/4i 0x0000000100000ea9 0x100000ea9: 66 c7 45 fa 10 00 movw $16, -6(%rbp) 0x100000eaf: c7 45 f4 20 00 00 00 movl $32, -12(%rbp) 0x100000eb6: e8 47 00 00 00 callq 0x0000000100000f02 ; void f<nullptr_t>(nullptr_t) 0x100000ebb: 8b 45 fc movl -4(%rbp), %eax (lldb) 0x100000ebe: 48 83 c4 10 addq $16, %rsp 0x100000ec2: 5d popq %rbp 0x100000ec3: c3 ret 0x100000ec4: 90 nop (lldb) 0x100000ec5: 90 nop 0x100000ec6: 90 nop 0x100000ec7: 90 nop 0x100000ec8: 90 nop (lldb) 0x100000ec9: 90 nop 0x100000eca: 90 nop 0x100000ecb: 90 nop 0x100000ecc: 90 nop (lldb) 0x100000ecd: 90 nop 0x100000ece: 90 nop 0x100000ecf: 90 nop 0x100000ed0: 55 pushq %rbp llvm-svn: 143254
-
Sean Callanan authored
allow it to complete types on behalf of any AST context (including the "scratch" AST context associated with the target), I scrapped its role as intermediary between the Clang parser and ClangExpressionDeclMap, and instead made ClangExpressionDeclMap inherit from ClangASTSource. After this, I will migrate the functions that complete types and perform namespace lookups from ClangExpressionDeclMap to ClangASTSource. Ultimately ClangExpressionDeclMap's only responsiblity will be to look up variables and ensure that they are materialized and dematerialized correctly. llvm-svn: 143253
-
Johnny Chen authored
commands to print the binary representaion of an integer. llvm-svn: 143252
-
Greg Clayton authored
order. Also hooked up the new formats for instruction, hex float and address to the new formats. llvm-svn: 143251
-
Richard Smith authored
binary operator isn't an rvalue if it's an assignment operator. llvm-svn: 143250
-
Jim Ingham authored
when setting breakpoints, but only if no module is specified. The Darwin platform uses this to not set breakpoints in dyld. llvm-svn: 143249
-
Douglas Gregor authored
define their own "nullptr" class in C++98 and build with -Wall. llvm-svn: 143248
-
NAKAMURA Takumi authored
llvm-svn: 143247
-
Greg Clayton authored
llvm-svn: 143246
-
Douglas Gregor authored
committee hasn't set a value for __STDC_VERSION__ yet, so this is a placeholder. But at least it's > 199901L. llvm-svn: 143245
-
Greg Clayton authored
the ensuing mayhem. llvm-svn: 143244
-
Argyrios Kyrtzidis authored
will cause c-index-test to return as failed if a compiler error occurred. llvm-svn: 143243
-
Argyrios Kyrtzidis authored
llvm-svn: 143242
-
Argyrios Kyrtzidis authored
the previous ASTDeserializationListener. llvm-svn: 143241
-
Argyrios Kyrtzidis authored
in which case the ownership is redundant. Thanks to John for the suggestion. llvm-svn: 143240
-
Argyrios Kyrtzidis authored
llvm-svn: 143239
-
Argyrios Kyrtzidis authored
Introduce a FILE_SORTED_DECLS [de]serialization record that contains a file sorted array of file-level DeclIDs in a PCH/Module. The rationale is to allow "targeted" deserialization of decls inside a range of a source file. Cocoa PCH increased by 0.8% Difference of creation time for Cocoa PCH is below the noise level. llvm-svn: 143238
-
Jim Grosbach authored
llvm-svn: 143237
-
Jim Grosbach authored
When '~imm' is encodable as a t2_so_imm but plain 'imm' is not. For example, mov r2, #-3 becomes mvn r2, #2 rdar://10349224 llvm-svn: 143235
-
Richard Smith authored
constexpr function arguments outside of their function (passing or returning them by reference) does not work correctly yet. Calling constexpr function templates does not work yet, since the bodies are not instantiated until the end of the translation unit. llvm-svn: 143234
-
Jim Grosbach authored
For example, On ARM, "mov r3, #-3" is an alias for "mvn r3, #2", so we want to use a matcher pattern that handles the bitwise negation when mapping to t2MVNi. llvm-svn: 143233
-