diff options
author | Lang Hames <lhames@gmail.com> | 2014-04-11 20:07:58 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2014-04-11 20:07:58 +0000 |
commit | 95400e22f99bfbd11b07d6f2ac2eeae1cb1418fc (patch) | |
tree | a3b7674e142cc1b29dc0863dd472c429996428f2 /llvm/lib/Target/ARM64/Disassembler/ARM64Disassembler.h | |
parent | 13c310e3ac61040cc2bcf6484ed9cb6a51954dc0 (diff) | |
download | bcm5719-llvm-95400e22f99bfbd11b07d6f2ac2eeae1cb1418fc.tar.gz bcm5719-llvm-95400e22f99bfbd11b07d6f2ac2eeae1cb1418fc.zip |
Remove redundant symbolization support from MCDisassembler interface.
MCDisassembler has an MCSymbolizer member that is meant to take care of
symbolizing during disassembly, but it also has several methods that enable the
disassembler to do symbolization internally (i.e. without an attached symbolizer
object). There is no need for this duplication, but ARM64 had been making use of
it. This patch moves the ARM64 symbolization logic out of ARM64Disassembler and
into an ARM64ExternalSymbolizer class, and removes the duplicated MCSymbolizer
functionality from the MCDisassembler interface. Symbolization will now be
done exclusively through MCSymbolizers.
There should be no impact on disassembly for any platform, but this allows us to
tidy up the MCDisassembler interface and simplify the process of (and invariants
related to) disassembler setup.
llvm-svn: 206063
Diffstat (limited to 'llvm/lib/Target/ARM64/Disassembler/ARM64Disassembler.h')
-rw-r--r-- | llvm/lib/Target/ARM64/Disassembler/ARM64Disassembler.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/llvm/lib/Target/ARM64/Disassembler/ARM64Disassembler.h b/llvm/lib/Target/ARM64/Disassembler/ARM64Disassembler.h index 35efc8de42a..95848d55fa4 100644 --- a/llvm/lib/Target/ARM64/Disassembler/ARM64Disassembler.h +++ b/llvm/lib/Target/ARM64/Disassembler/ARM64Disassembler.h @@ -33,20 +33,6 @@ public: uint64_t address, raw_ostream &vStream, raw_ostream &cStream) const; - - /// tryAddingSymbolicOperand - tryAddingSymbolicOperand trys to add a symbolic - /// operand in place of the immediate Value in the MCInst. The immediate - /// Value has not had any PC adjustment made by the caller. If the instruction - /// adds the PC to the immediate Value then InstsAddsAddressToValue is true, - /// else false. If the getOpInfo() function was set as part of the - /// setupForSymbolicDisassembly() call then that function is called to get any - /// symbolic information at the Address for this instrution. If that returns - /// non-zero then the symbolic information it returns is used to create an - /// MCExpr and that is added as an operand to the MCInst. This function - /// returns true if it adds an operand to the MCInst and false otherwise. - bool tryAddingSymbolicOperand(uint64_t Address, int Value, - bool InstsAddsAddressToValue, uint64_t InstSize, - MCInst &MI, uint32_t insn = 0) const; }; } // namespace llvm |