aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/llvm/CodeGen/AsmPrinter.h6
-rw-r--r--lib/CodeGen/AsmPrinter/AsmPrinter.cpp4
-rw-r--r--lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.h3
3 files changed, 1 insertions, 12 deletions
diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h
index 860aff5..fe6249b 100644
--- a/include/llvm/CodeGen/AsmPrinter.h
+++ b/include/llvm/CodeGen/AsmPrinter.h
@@ -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;
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index ef43c35..6a94287 100644
--- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -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;
diff --git a/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.h b/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.h
index 12c3d11..33042dc 100644
--- a/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.h
+++ b/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.h
@@ -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);