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:
Nick Lewycky
2011-09-01 21:09:04 +00:00
parent 81b4e434d9
commit 833a003da0
2 changed files with 24 additions and 37 deletions

View File

@ -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 &registerInfo) {