summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorFrederic Riss <friss@apple.com>2014-08-28 19:09:29 +0000
committerFrederic Riss <friss@apple.com>2014-08-28 19:09:29 +0000
commit9e32475f18c118987e523b0b6713515a106040c4 (patch)
treef7cebf1c0013cf1926e7943f55e6007c8d4e1182 /llvm/lib
parent4a6ead7a9f36319c3c064beae4fdb09a90402b05 (diff)
downloadbcm5719-llvm-9e32475f18c118987e523b0b6713515a106040c4.tar.gz
bcm5719-llvm-9e32475f18c118987e523b0b6713515a106040c4.zip
Constify MCSymbol* parameters to DwarfDebug::attachLowHighPC.
llvm-svn: 216681
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp2
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 58bc96daf26..1788a6289ed 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -2610,7 +2610,7 @@ void DwarfDebug::addDwarfTypeUnitType(DwarfCompileUnit &CU,
}
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");
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
index c0e7e439318..3528b2b8e33 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
@@ -562,8 +562,8 @@ class DwarfDebug : public AsmPrinterHandler {
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:
//===--------------------------------------------------------------------===//
OpenPOWER on IntegriCloud