summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-11-17 23:22:13 +0000
committerChris Lattner <sabre@nondot.org>2002-11-17 23:22:13 +0000
commitd8ea18b6953c91eb961829f817425ddbbee7e059 (patch)
tree949b5c42db4256f4e4b6347b629d0a37f52e54a9
parent63d8375f8065eaf880ed80690fe83075dac297b9 (diff)
downloadbcm5719-llvm-d8ea18b6953c91eb961829f817425ddbbee7e059.tar.gz
bcm5719-llvm-d8ea18b6953c91eb961829f817425ddbbee7e059.zip
Print is const!
llvm-svn: 4737
-rw-r--r--llvm/include/llvm/CodeGen/MachineInstr.h2
-rw-r--r--llvm/lib/CodeGen/MachineInstr.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/CodeGen/MachineInstr.h b/llvm/include/llvm/CodeGen/MachineInstr.h
index 421d753d10e..fb6e46040a7 100644
--- a/llvm/include/llvm/CodeGen/MachineInstr.h
+++ b/llvm/include/llvm/CodeGen/MachineInstr.h
@@ -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);
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp
index 91ee5123e19..ffd2e6e68f3 100644
--- a/llvm/lib/CodeGen/MachineInstr.cpp
+++ b/llvm/lib/CodeGen/MachineInstr.cpp
@@ -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
OpenPOWER on IntegriCloud