aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineBasicBlock.cpp
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2016-05-05 18:14:43 +0000
committerMatthias Braun <matze@braunis.de>2016-05-05 18:14:43 +0000
commit0e881d61c1712f636782f298fb6b1bf4a4ccee7d (patch)
treebce256c75bcbd2915dfa1fd75e35b075f3bf582a /llvm/lib/CodeGen/MachineBasicBlock.cpp
parentec77af3a4b47f690c41bb6b9d92043933aaaa3bb (diff)
downloadllvm-0e881d61c1712f636782f298fb6b1bf4a4ccee7d.zip
llvm-0e881d61c1712f636782f298fb6b1bf4a4ccee7d.tar.gz
llvm-0e881d61c1712f636782f298fb6b1bf4a4ccee7d.tar.bz2
MachineFunction: Add a const modifier to print() parameter
llvm-svn: 268657
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineBasicBlock.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineBasicBlock.cpp b/llvm/lib/CodeGen/MachineBasicBlock.cpp
index 58e71bb..3350213 100644
--- a/llvm/lib/CodeGen/MachineBasicBlock.cpp
+++ b/llvm/lib/CodeGen/MachineBasicBlock.cpp
@@ -230,7 +230,8 @@ std::string MachineBasicBlock::getFullName() const {
return Name;
}
-void MachineBasicBlock::print(raw_ostream &OS, SlotIndexes *Indexes) const {
+void MachineBasicBlock::print(raw_ostream &OS, const SlotIndexes *Indexes)
+ const {
const MachineFunction *MF = getParent();
if (!MF) {
OS << "Can't print out MachineBasicBlock because parent MachineFunction"
@@ -244,7 +245,7 @@ void MachineBasicBlock::print(raw_ostream &OS, SlotIndexes *Indexes) const {
}
void MachineBasicBlock::print(raw_ostream &OS, ModuleSlotTracker &MST,
- SlotIndexes *Indexes) const {
+ const SlotIndexes *Indexes) const {
const MachineFunction *MF = getParent();
if (!MF) {
OS << "Can't print out MachineBasicBlock because parent MachineFunction"