Print is const!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4737 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2002-11-17 23:22:13 +00:00
parent 3b49394f4f
commit af55be15df
2 changed files with 2 additions and 2 deletions

View 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);

View 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