Make a few more things const.

llvm-svn: 188484
This commit is contained in:
Bill Wendling 2013-08-15 20:25:44 +00:00
parent 2d092f05b4
commit 33fae6935a
2 changed files with 3 additions and 3 deletions

View File

@ -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;
}

View File

@ -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;