mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
[X86][Disassembler] Merge X86DisassemblerDecoder.cpp into X86Disassembler.cpp and refactor
This commit is contained in:
parent
acc6f07fcd
commit
f9acff790a
@ -1,4 +1,3 @@
|
||||
add_llvm_component_library(LLVMX86Disassembler
|
||||
X86Disassembler.cpp
|
||||
X86DisassemblerDecoder.cpp
|
||||
)
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -593,11 +593,9 @@ struct InternalInstruction {
|
||||
uint8_t modRM;
|
||||
|
||||
// The SIB byte, used for more complex 32- or 64-bit memory operands
|
||||
bool consumedSIB;
|
||||
uint8_t sib;
|
||||
|
||||
// The displacement, used for memory operands
|
||||
bool consumedDisplacement;
|
||||
int32_t displacement;
|
||||
|
||||
// Immediates. There can be two in some cases
|
||||
@ -634,17 +632,6 @@ struct InternalInstruction {
|
||||
ArrayRef<OperandSpecifier> operands;
|
||||
};
|
||||
|
||||
/// Decode one instruction and store the decoding results in
|
||||
/// a buffer provided by the consumer.
|
||||
/// \return Nonzero if there was an error during decode, 0 otherwise.
|
||||
int decodeInstruction(InternalInstruction *insn, const MCInstrInfo *mii);
|
||||
|
||||
/// Print a message to debugs()
|
||||
/// \param file The name of the file printing the debug message.
|
||||
/// \param line The line number that printed the debug message.
|
||||
/// \param s The message to print.
|
||||
void Debug(const char *file, unsigned line, const char *s);
|
||||
|
||||
} // namespace X86Disassembler
|
||||
} // namespace llvm
|
||||
|
||||
|
@ -18,6 +18,5 @@ static_library("Disassembler") {
|
||||
include_dirs = [ ".." ]
|
||||
sources = [
|
||||
"X86Disassembler.cpp",
|
||||
"X86DisassemblerDecoder.cpp",
|
||||
]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user