mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 21:24:00 +00:00
Fix the build for us -Werror users.
Remove broken emacs mode major notation marking a C++ file as C. No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138963 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -239,29 +239,20 @@ EDInst *EDDisassembler::createInst(EDByteReaderCallback byteReader,
|
||||
MCInst* inst = new MCInst;
|
||||
uint64_t byteSize;
|
||||
|
||||
MCDisassembler::DecodeStatus S;
|
||||
S = Disassembler->getInstruction(*inst,
|
||||
byteSize,
|
||||
memoryObject,
|
||||
address,
|
||||
ErrorStream);
|
||||
switch (S) {
|
||||
case MCDisassembler::Fail:
|
||||
case MCDisassembler::SoftFail:
|
||||
if (Disassembler->getInstruction(*inst, byteSize, memoryObject, address,
|
||||
ErrorStream) != MCDisassembler::Success) {
|
||||
// FIXME: Do something different on soft failure mode?
|
||||
delete inst;
|
||||
return NULL;
|
||||
case MCDisassembler::Success: {
|
||||
const llvm::EDInstInfo *thisInstInfo = NULL;
|
||||
}
|
||||
const llvm::EDInstInfo *thisInstInfo = NULL;
|
||||
|
||||
if (InstInfos) {
|
||||
thisInstInfo = &InstInfos[inst->getOpcode()];
|
||||
}
|
||||
if (InstInfos) {
|
||||
thisInstInfo = &InstInfos[inst->getOpcode()];
|
||||
}
|
||||
|
||||
EDInst* sdInst = new EDInst(inst, byteSize, *this, thisInstInfo);
|
||||
return sdInst;
|
||||
}
|
||||
}
|
||||
EDInst* sdInst = new EDInst(inst, byteSize, *this, thisInstInfo);
|
||||
return sdInst;
|
||||
}
|
||||
|
||||
void EDDisassembler::initMaps(const MCRegisterInfo ®isterInfo) {
|
||||
|
Reference in New Issue
Block a user