Make sure that print gets a targetmachine
authorChris Lattner <sabre@nondot.org>
Sun, 17 Nov 2002 23:21:45 +0000 (23:21 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 17 Nov 2002 23:21:45 +0000 (23:21 +0000)
 CVS: ----------------------------------------------------------------------

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

include/llvm/Target/MachineInstrInfo.h
include/llvm/Target/TargetInstrInfo.h

index 5c694f667971eb8aefc295acc8a89ada1b3dbacb..988e787d20c32939d1d16b5a2a11f3d1af023f13 100644 (file)
@@ -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;
index 5c694f667971eb8aefc295acc8a89ada1b3dbacb..988e787d20c32939d1d16b5a2a11f3d1af023f13 100644 (file)
@@ -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;