Add PrintSpecial() handling for in ARM MC instruction printer.
authorJim Grosbach <grosbach@apple.com>
Wed, 22 Sep 2010 18:37:14 +0000 (18:37 +0000)
committerJim Grosbach <grosbach@apple.com>
Wed, 22 Sep 2010 18:37:14 +0000 (18:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114563 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/AsmPrinter/ARMInstPrinter.cpp
lib/Target/ARM/AsmPrinter/ARMInstPrinter.h

index 528abfe4b2620a8646dcfd590819170499f9ef6c..64658a6d4957d049b575b6d20cd9ea0e50868dc5 100644 (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();
+}
index a8efaf2b19d9dcbe26e4308f06da7f110e5949df..a5b21186f26a427ba5801be1f947e7a48e7828f0 100644 (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);
 };
 
 }