summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Yasskin <jyasskin@google.com>2010-03-15 06:59:21 +0000
committerJeffrey Yasskin <jyasskin@google.com>2010-03-15 06:59:21 +0000
commita1d3908a35b42adeb70fbdeadedca856537f9c3c (patch)
tree3459f13a21cfda3047655cb23a0b37e8182b26f6
parent632eb65cd2315c68e4a43ef5950cd31e82adf7cb (diff)
downloadbcm5719-llvm-a1d3908a35b42adeb70fbdeadedca856537f9c3c.tar.gz
bcm5719-llvm-a1d3908a35b42adeb70fbdeadedca856537f9c3c.zip
Don't save a temporary string into a StringRef field.
llvm-svn: 98538
-rw-r--r--llvm/include/llvm/MC/MCSectionELF.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/MC/MCSectionELF.h b/llvm/include/llvm/MC/MCSectionELF.h
index 41c17bd8fa1..cdd2f73b348 100644
--- a/llvm/include/llvm/MC/MCSectionELF.h
+++ b/llvm/include/llvm/MC/MCSectionELF.h
@@ -39,7 +39,7 @@ class MCSectionELF : public MCSection {
protected:
MCSectionELF(StringRef Section, unsigned type, unsigned flags,
SectionKind K, bool isExplicit)
- : MCSection(K), SectionName(Section.str()), Type(type), Flags(flags),
+ : MCSection(K), SectionName(Section), Type(type), Flags(flags),
IsExplicit(isExplicit) {}
public:
OpenPOWER on IntegriCloud