Skip to content

Commit

Permalink
Fix missing const
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212168 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
arsenm committed Jul 2, 2014
1 parent 3e01ae9 commit d0fb0f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions include/llvm/CodeGen/MachineBasicBlock.h
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ class MachineBasicBlock : public ilist_node<MachineBasicBlock> {

/// computeRegisterLiveness - Return whether (physical) register \c Reg
/// has been <def>ined and not <kill>ed as of just before \c MI.
///
///
/// Search is localised to a neighborhood of
/// \c Neighborhood instructions before (searching for defs or kills) and
/// Neighborhood instructions after (searching just for defs) MI.
Expand All @@ -635,7 +635,7 @@ class MachineBasicBlock : public ilist_node<MachineBasicBlock> {
void print(raw_ostream &OS, SlotIndexes* = nullptr) const;

// Printing method used by LoopInfo.
void printAsOperand(raw_ostream &OS, bool PrintType = true);
void printAsOperand(raw_ostream &OS, bool PrintType = true) const;

/// getNumber - MachineBasicBlocks are uniquely numbered at the function
/// level, unless they're not in a MachineFunction yet, in which case this
Expand Down
2 changes: 1 addition & 1 deletion lib/CodeGen/MachineBasicBlock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ void MachineBasicBlock::print(raw_ostream &OS, SlotIndexes *Indexes) const {
}
}

void MachineBasicBlock::printAsOperand(raw_ostream &OS, bool /*PrintType*/) {
void MachineBasicBlock::printAsOperand(raw_ostream &OS, bool /*PrintType*/) const {
OS << "BB#" << getNumber();
}

Expand Down

0 comments on commit d0fb0f4

Please sign in to comment.