Print is const!
authorChris Lattner <sabre@nondot.org>
Sun, 17 Nov 2002 23:22:13 +0000 (23:22 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 17 Nov 2002 23:22:13 +0000 (23:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4737 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/MachineInstr.h
lib/CodeGen/MachineInstr.cpp

index 421d753d10e2c3fc23ea687d87d30c5d58045e6a..fb6e46040a7fe3bd11f7c8e79adcc8e81128f1d7 100644 (file)
@@ -347,7 +347,7 @@ public:
   //
   // Debugging support
   //
-  void print(std::ostream &OS, const TargetMachine &TM);
+  void print(std::ostream &OS, const TargetMachine &TM) const;
   void dump() const;
   friend std::ostream& operator<<(std::ostream& os, const MachineInstr& minstr);
 
index 91ee5123e197cf91451d41357e98fb1db0e3c214..ffd2e6e68f31b07f5eee8cb82fe6f970d0f07363 100644 (file)
@@ -268,7 +268,7 @@ static void print(const MachineOperand &MO, std::ostream &OS,
     OS << ")";
 }
 
-void MachineInstr::print(std::ostream &OS, const TargetMachine &TM) {
+void MachineInstr::print(std::ostream &OS, const TargetMachine &TM) const {
   unsigned StartOp = 0;
 
    // Specialize printing if op#0 is definition