Add PrintSpecial() handling for in ARM MC instruction printer.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114563 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jim Grosbach 2010-09-22 18:37:14 +00:00
parent bd4ec84d15
commit 00d01f1a42
2 changed files with 9 additions and 2 deletions

View File

@ -736,3 +736,11 @@ void ARMInstPrinter::printNEONModImmOperand(const MCInst *MI, unsigned OpNum,
uint64_t Val = ARM_AM::decodeNEONModImm(EncodedImm, EltBits);
O << "#0x" << utohexstr(Val);
}
void ARMInstPrinter::PrintSpecial(const MCInst *MI, raw_ostream &O,
const char *Kind) {
if (strcmp(Kind, "comment") == 0)
O << "@";
else
abort();
}

View File

@ -110,8 +110,7 @@ public:
void printNEONModImmOperand(const MCInst *MI, unsigned OpNum, raw_ostream &O);
void printPCLabel(const MCInst *MI, unsigned OpNum, raw_ostream &O);
// FIXME: Implement.
void PrintSpecial(const MCInst *MI, raw_ostream &O, const char *Kind) {}
void PrintSpecial(const MCInst *MI, raw_ostream &O, const char *Kind);
};
}