[llvm] r216681 - Constify MCSymbol* parameters to DwarfDebug::attachLowHighPC.
Frederic Riss
friss at apple.com
Thu Aug 28 12:09:29 PDT 2014
Author: friss
Date: Thu Aug 28 14:09:29 2014
New Revision: 216681
URL: http://llvm.org/viewvc/llvm-project?rev=216681&view=rev
Log:
Constify MCSymbol* parameters to DwarfDebug::attachLowHighPC.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.h
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp?rev=216681&r1=216680&r2=216681&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Thu Aug 28 14:09:29 2014
@@ -2610,7 +2610,7 @@ void DwarfDebug::addDwarfTypeUnitType(Dw
}
void DwarfDebug::attachLowHighPC(DwarfCompileUnit &Unit, DIE &D,
- MCSymbol *Begin, MCSymbol *End) {
+ const MCSymbol *Begin, const MCSymbol *End) {
assert(Begin && "Begin label should not be null!");
assert(End && "End label should not be null!");
assert(Begin->isDefined() && "Invalid starting label");
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.h?rev=216681&r1=216680&r2=216681&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.h (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.h Thu Aug 28 14:09:29 2014
@@ -562,8 +562,8 @@ class DwarfDebug : public AsmPrinterHand
void attachRangesOrLowHighPC(DwarfCompileUnit &Unit, DIE &D,
const SmallVectorImpl<InsnRange> &Ranges);
- void attachLowHighPC(DwarfCompileUnit &Unit, DIE &D, MCSymbol *Begin,
- MCSymbol *End);
+ void attachLowHighPC(DwarfCompileUnit &Unit, DIE &D, const MCSymbol *Begin,
+ const MCSymbol *End);
public:
//===--------------------------------------------------------------------===//
More information about the llvm-commits
mailing list