aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-09-09 23:14:36 +0000
committerChris Lattner <sabre@nondot.org>2009-09-09 23:14:36 +0000
commitc5ea263a23f4f15587e35c9cb07cf72a9fba7613 (patch)
treea22608a7ab76b9f161d5fde04df21b5443afbe66 /include/llvm
parent28179db68b8cb71c82132d37935b8511c067d220 (diff)
downloadexternal_llvm-c5ea263a23f4f15587e35c9cb07cf72a9fba7613.zip
external_llvm-c5ea263a23f4f15587e35c9cb07cf72a9fba7613.tar.gz
external_llvm-c5ea263a23f4f15587e35c9cb07cf72a9fba7613.tar.bz2
remove DebugLoc from MCInst and eliminate "Comment printing" from
the MCInst path of the asmprinter. Instead, pull comment printing out of the autogenerated asmprinter into each target that uses the autogenerated asmprinter. This causes code duplication into each target, but in a way that will be easier to clean up later when more asmprinter stuff is commonized into the base AsmPrinter class. This also fixes an xcore strangeness where it inserted two tabs before every instruction. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81396 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/CodeGen/AsmPrinter.h2
-rw-r--r--include/llvm/MC/MCInst.h7
2 files changed, 0 insertions, 9 deletions
diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h
index c7d2f54..88534a5 100644
--- a/include/llvm/CodeGen/AsmPrinter.h
+++ b/include/llvm/CodeGen/AsmPrinter.h
@@ -336,8 +336,6 @@ namespace llvm {
/// EmitComments - Pretty-print comments for instructions
void EmitComments(const MachineInstr &MI) const;
- /// EmitComments - Pretty-print comments for instructions
- void EmitComments(const MCInst &MI) const;
/// EmitComments - Pretty-print comments for basic blocks
void EmitComments(const MachineBasicBlock &MBB) const;
diff --git a/include/llvm/MC/MCInst.h b/include/llvm/MC/MCInst.h
index 9facf3b..b204a9b 100644
--- a/include/llvm/MC/MCInst.h
+++ b/include/llvm/MC/MCInst.h
@@ -18,7 +18,6 @@
#include "llvm/ADT/SmallVector.h"
#include "llvm/Support/DataTypes.h"
-#include "llvm/Support/DebugLoc.h"
namespace llvm {
class raw_ostream;
@@ -132,9 +131,6 @@ public:
class MCInst {
unsigned Opcode;
SmallVector<MCOperand, 8> Operands;
-
- // FIXME: This is a hack!
- DebugLoc Loc;
public:
MCInst() : Opcode(~0U) {}
@@ -142,9 +138,6 @@ public:
unsigned getOpcode() const { return Opcode; }
- void setDebugLoc(DebugLoc L) { Loc = L; }
- DebugLoc getDebugLoc() const { return Loc; }
-
const MCOperand &getOperand(unsigned i) const { return Operands[i]; }
MCOperand &getOperand(unsigned i) { return Operands[i]; }
unsigned getNumOperands() const { return Operands.size(); }