summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2014-08-30 16:48:02 +0000
committerCraig Topper <craig.topper@gmail.com>2014-08-30 16:48:02 +0000
commit6dc4a8bc2c307022e0c330d531109d325fc044cf (patch)
treed10033092d22061f48f763822a09018fce5de6eb /llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h
parente98cdf9b773f7bce3531345cfda1fa1eedf2fca7 (diff)
downloadbcm5719-llvm-6dc4a8bc2c307022e0c330d531109d325fc044cf.tar.gz
bcm5719-llvm-6dc4a8bc2c307022e0c330d531109d325fc044cf.zip
Fix some cases where StringRef was being passed by const reference. Remove const from some other StringRefs since its implicitly const already.
llvm-svn: 216820
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h
index 3e21748dd39..90b67b26a6b 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h
@@ -275,11 +275,11 @@ public:
void addSInt(DIELoc &Die, Optional<dwarf::Form> Form, int64_t Integer);
/// addString - Add a string attribute data and value.
- void addString(DIE &Die, dwarf::Attribute Attribute, const StringRef Str);
+ void addString(DIE &Die, dwarf::Attribute Attribute, StringRef Str);
/// addLocalString - Add a string attribute data and value.
void addLocalString(DIE &Die, dwarf::Attribute Attribute,
- const StringRef Str);
+ StringRef Str);
/// addExpr - Add a Dwarf expression attribute data and value.
void addExpr(DIELoc &Die, dwarf::Form Form, const MCExpr *Expr);
OpenPOWER on IntegriCloud