[llvm-commits] [llvm] r82006 - in /llvm/trunk: include/llvm/CodeGen/AsmPrinter.h lib/CodeGen/AsmPrinter/AsmPrinter.cpp lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.h

Chris Lattner sabre at nondot.org
Tue Sep 15 21:57:26 PDT 2009


Author: lattner
Date: Tue Sep 15 23:57:15 2009
New Revision: 82006

URL: http://llvm.org/viewvc/llvm-project?rev=82006&view=rev
Log:
remove the AsmPrinter::printMCInst hook hack now that
we have MCInstPrinter.


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

Modified: llvm/trunk/include/llvm/CodeGen/AsmPrinter.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/AsmPrinter.h?rev=82006&r1=82005&r2=82006&view=diff

==============================================================================
--- llvm/trunk/include/llvm/CodeGen/AsmPrinter.h (original)
+++ llvm/trunk/include/llvm/CodeGen/AsmPrinter.h Tue Sep 15 23:57:15 2009
@@ -321,12 +321,6 @@
     /// 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;

Modified: llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp?rev=82006&r1=82005&r2=82006&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp Tue Sep 15 23:57:15 2009
@@ -1711,10 +1711,6 @@
     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;

Modified: llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.h?rev=82006&r1=82005&r2=82006&view=diff

==============================================================================
--- llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.h (original)
+++ llvm/trunk/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.h Tue Sep 15 23:57:15 2009
@@ -63,8 +63,7 @@
   void printInstructionThroughMCStreamer(const MachineInstr *MI);
 
 
-  // FIXME: REMOVE.
-  virtual void printMCInst(const MCInst *MI);
+  void printMCInst(const MCInst *MI);
 
   void printSymbolOperand(const MachineOperand &MO);
   





More information about the llvm-commits mailing list