remove the AsmPrinter::printMCInst hook hack now that
authorChris Lattner <sabre@nondot.org>
Wed, 16 Sep 2009 04:57:15 +0000 (04:57 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 16 Sep 2009 04:57:15 +0000 (04:57 +0000)
we have MCInstPrinter.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82006 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/AsmPrinter.h
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.h

index 860aff550966147d52f83eed919135fa4d5f6943..fe6249b88de287f722d982924a4ccc4158be87f4 100644 (file)
@@ -321,12 +321,6 @@ namespace llvm {
     /// EmitComments - Pretty-print comments for basic blocks
     void EmitComments(const MachineBasicBlock &MBB) const;
 
-    /// printMCInst - Print an MCInst for this target.
-    ///
-    /// Note, this is only a temporary hack to allow the MCStreamer to print
-    /// instructions, do not use this function outside of llvm-mc.
-    virtual void printMCInst(const MCInst *MI);
-
     /// GetMBBSymbol - Return the MCSymbol corresponding to the specified basic
     /// block label.
     MCSymbol *GetMBBSymbol(unsigned MBBID) const;
index ef43c352acd08f5a404b5c03f8cdc2c8fdc4ebee..6a9428737fa9b9a4d977567e462c9f2ce892bfaf 100644 (file)
@@ -1711,10 +1711,6 @@ void AsmPrinter::printOffset(int64_t Offset) const {
     O << Offset;
 }
 
-void AsmPrinter::printMCInst(const MCInst *MI) {
-  llvm_unreachable("MCInst printing unavailable on this target!");
-}
-
 GCMetadataPrinter *AsmPrinter::GetOrCreateGCPrinter(GCStrategy *S) {
   if (!S->usesMetadata())
     return 0;
index 12c3d1168e9974d0961a790280039127b4df76b5..33042dc7591e94e86913e3d24a69cb6d445bbbfa 100644 (file)
@@ -63,8 +63,7 @@ class VISIBILITY_HIDDEN X86ATTAsmPrinter : public AsmPrinter {
   void printInstructionThroughMCStreamer(const MachineInstr *MI);
 
 
-  // FIXME: REMOVE.
-  virtual void printMCInst(const MCInst *MI);
+  void printMCInst(const MCInst *MI);
 
   void printSymbolOperand(const MachineOperand &MO);