summaryrefslogtreecommitdiffstats
path: root/lldb/source/Expression/ClangExpressionParser.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2012-05-10 02:52:23 +0000
committerGreg Clayton <gclayton@apple.com>2012-05-10 02:52:23 +0000
commitba812f42842530d6f2123fa34ca30e82ad3515cf (patch)
tree9940cde31aea9b0312d107d4497e876eac71623f /lldb/source/Expression/ClangExpressionParser.cpp
parentc67f223c9ee4cbfa478a1d6e9cfe5b03c524b4fa (diff)
downloadbcm5719-llvm-ba812f42842530d6f2123fa34ca30e82ad3515cf.tar.gz
bcm5719-llvm-ba812f42842530d6f2123fa34ca30e82ad3515cf.zip
<rdar://problem/11330621>
Fixed the DisassemblerLLVMC disassembler to parse more efficiently instead of parsing opcodes over and over. The InstructionLLVMC class now only reads the opcode in the InstructionLLVMC::Decode function. This can be done very efficiently for ARM and architectures that have fixed opcode sizes. For x64 it still calls the disassembler to get the byte size. Moved the lldb_private::Instruction::Dump(...) function up into the lldb_private::Instruction class and it now uses the function that gets the mnemonic, operandes and comments so that all disassembly is using the same code. Added StreamString::FillLastLineToColumn() to allow filling a line up to a column with a character (which is used by the lldb_private::Instruction::Dump(...) function). Modified the Opcode::GetData() fucntion to "do the right thing" for thumb instructions. llvm-svn: 156532
Diffstat (limited to 'lldb/source/Expression/ClangExpressionParser.cpp')
-rw-r--r--lldb/source/Expression/ClangExpressionParser.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lldb/source/Expression/ClangExpressionParser.cpp b/lldb/source/Expression/ClangExpressionParser.cpp
index 06f25fb24ea..efc00cc95d7 100644
--- a/lldb/source/Expression/ClangExpressionParser.cpp
+++ b/lldb/source/Expression/ClangExpressionParser.cpp
@@ -793,8 +793,7 @@ ClangExpressionParser::DisassembleFunction (Stream &stream, ExecutionContext &ex
max_opcode_byte_size,
true,
true,
- &exe_ctx,
- true);
+ &exe_ctx);
stream.PutChar('\n');
}
OpenPOWER on IntegriCloud