aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-11-17 23:21:45 +0000
committerChris Lattner <sabre@nondot.org>2002-11-17 23:21:45 +0000
commitfe30dd3f2390c26fe1f83868cd57a1e6b27d3075 (patch)
treeb4bddce0d16364ae4a1f6a76e588aed6093e4f2e
parent927dd095c435788655d7fe2a16f26efe65355fd2 (diff)
Make sure that print gets a targetmachine
CVS: ---------------------------------------------------------------------- git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4735 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Target/MachineInstrInfo.h3
-rw-r--r--include/llvm/Target/TargetInstrInfo.h3
2 files changed, 4 insertions, 2 deletions
diff --git a/include/llvm/Target/MachineInstrInfo.h b/include/llvm/Target/MachineInstrInfo.h
index 5c694f6679..988e787d20 100644
--- a/include/llvm/Target/MachineInstrInfo.h
+++ b/include/llvm/Target/MachineInstrInfo.h
@@ -98,7 +98,8 @@ public:
/// target specific assembly language. If this method is not overridden, the
/// default implementation uses the crummy machine independant printer.
///
- virtual void print(const MachineInstr *MI, std::ostream &O) const;
+ virtual void print(const MachineInstr *MI, std::ostream &O,
+ const TargetMachine &TM) const;
const char *getName(MachineOpCode opCode) const {
return get(opCode).Name;
diff --git a/include/llvm/Target/TargetInstrInfo.h b/include/llvm/Target/TargetInstrInfo.h
index 5c694f6679..988e787d20 100644
--- a/include/llvm/Target/TargetInstrInfo.h
+++ b/include/llvm/Target/TargetInstrInfo.h
@@ -98,7 +98,8 @@ public:
/// target specific assembly language. If this method is not overridden, the
/// default implementation uses the crummy machine independant printer.
///
- virtual void print(const MachineInstr *MI, std::ostream &O) const;
+ virtual void print(const MachineInstr *MI, std::ostream &O,
+ const TargetMachine &TM) const;
const char *getName(MachineOpCode opCode) const {
return get(opCode).Name;