summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-08-15 20:25:44 +0000
committerBill Wendling <isanbard@gmail.com>2013-08-15 20:25:44 +0000
commit873e392ffd6701f6724e4c2a7accd0a4e1f1e0a1 (patch)
treef7b6437844d7bc75be0c60a55f5225e3da031601
parent7d938adacc9a625b09dd1b4c0c0df0247a1b1ed2 (diff)
downloadllvm-873e392ffd6701f6724e4c2a7accd0a4e1f1e0a1.tar.gz
llvm-873e392ffd6701f6724e4c2a7accd0a4e1f1e0a1.tar.bz2
llvm-873e392ffd6701f6724e4c2a7accd0a4e1f1e0a1.tar.xz
Make a few more things const.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188484 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/CodeGen/MachineModuleInfo.h2
-rw-r--r--lib/CodeGen/AsmPrinter/AsmPrinter.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/CodeGen/MachineModuleInfo.h b/include/llvm/CodeGen/MachineModuleInfo.h
index 186017c906..460c08c8ca 100644
--- a/include/llvm/CodeGen/MachineModuleInfo.h
+++ b/include/llvm/CodeGen/MachineModuleInfo.h
@@ -234,7 +234,7 @@ public:
/// \brief Returns a reference to a list of cfi instructions in the current
/// function's prologue. Used to construct frame maps for debug and exception
/// handling comsumers.
- const std::vector<MCCFIInstruction> &getFrameInstructions() {
+ const std::vector<MCCFIInstruction> &getFrameInstructions() const {
return FrameInstructions;
}
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 4d9497a96b..42a21650fb 100644
--- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -646,7 +646,7 @@ bool AsmPrinter::needsRelocationsForDwarfStringPool() const {
}
void AsmPrinter::emitPrologLabel(const MachineInstr &MI) {
- MCSymbol *Label = MI.getOperand(0).getMCSymbol();
+ const MCSymbol *Label = MI.getOperand(0).getMCSymbol();
if (MAI->getExceptionHandlingType() != ExceptionHandling::DwarfCFI)
return;
@@ -657,7 +657,7 @@ void AsmPrinter::emitPrologLabel(const MachineInstr &MI) {
if (MMI->getCompactUnwindEncoding() != 0)
OutStreamer.EmitCompactUnwindEncoding(MMI->getCompactUnwindEncoding());
- MachineModuleInfo &MMI = MF->getMMI();
+ const MachineModuleInfo &MMI = MF->getMMI();
const std::vector<MCCFIInstruction> &Instrs = MMI.getFrameInstructions();
bool FoundOne = false;
(void)FoundOne;