1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 03:53:04 +02:00

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

llvm-svn: 114563
This commit is contained in:
Jim Grosbach 2010-09-22 18:37:14 +00:00
parent 8899a330c7
commit f264fe8e05
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);
};
}