Fixed the public and internal disassembler API to be named correctly:
const char *
SBInstruction::GetMnemonic()
const char *
SBInstruction::GetOperands()
const char *
SBInstruction::GetComment()
Fixed the symbolicate example script and the internals.
llvm-svn: 140591
diff --git a/lldb/source/Plugins/Disassembler/llvm/DisassemblerLLVM.cpp b/lldb/source/Plugins/Disassembler/llvm/DisassemblerLLVM.cpp
index 610271d..97831ea 100644
--- a/lldb/source/Plugins/Disassembler/llvm/DisassemblerLLVM.cpp
+++ b/lldb/source/Plugins/Disassembler/llvm/DisassemblerLLVM.cpp
@@ -430,7 +430,7 @@
}
void
-InstructionLLVM::CalculateOpcodeName (ExecutionContextScope *exe_scope)
+InstructionLLVM::CalculateMnemonic (ExecutionContextScope *exe_scope)
{
const int num_tokens = EDNumTokens(m_inst);
if (num_tokens > 0)
@@ -554,17 +554,17 @@
}
void
-InstructionLLVM::CalculateMnemonics(ExecutionContextScope *exe_scope)
+InstructionLLVM::CalculateOperands(ExecutionContextScope *exe_scope)
{
- // Do all of the work in CalculateOpcodeName()
- CalculateOpcodeName (exe_scope);
+ // Do all of the work in CalculateMnemonic()
+ CalculateMnemonic (exe_scope);
}
void
InstructionLLVM::CalculateComment(ExecutionContextScope *exe_scope)
{
- // Do all of the work in CalculateOpcodeName()
- CalculateOpcodeName (exe_scope);
+ // Do all of the work in CalculateMnemonic()
+ CalculateMnemonic (exe_scope);
}
bool
diff --git a/lldb/source/Plugins/Disassembler/llvm/DisassemblerLLVM.h b/lldb/source/Plugins/Disassembler/llvm/DisassemblerLLVM.h
index b9ab490..73a117d 100644
--- a/lldb/source/Plugins/Disassembler/llvm/DisassemblerLLVM.h
+++ b/lldb/source/Plugins/Disassembler/llvm/DisassemblerLLVM.h
@@ -44,10 +44,10 @@
uint32_t data_offset);
virtual void
- CalculateOpcodeName (lldb_private::ExecutionContextScope *exe_scope);
+ CalculateMnemonic (lldb_private::ExecutionContextScope *exe_scope);
virtual void
- CalculateMnemonics (lldb_private::ExecutionContextScope *exe_scope);
+ CalculateOperands (lldb_private::ExecutionContextScope *exe_scope);
virtual void
CalculateComment (lldb_private::ExecutionContextScope *exe_scope);