diff options
author | Jeffrey Yasskin <jyasskin@google.com> | 2010-03-15 06:59:21 +0000 |
---|---|---|
committer | Jeffrey Yasskin <jyasskin@google.com> | 2010-03-15 06:59:21 +0000 |
commit | ad181304e1e203bb0a039f7581188afdbc1afb42 (patch) | |
tree | 909573ec362060713789fd28d15cf86bce794d11 /include/llvm/MC/MCSectionELF.h | |
parent | 1f8008cf214b984954de2e986fb8cb0e5cc58606 (diff) | |
download | external_llvm-ad181304e1e203bb0a039f7581188afdbc1afb42.zip external_llvm-ad181304e1e203bb0a039f7581188afdbc1afb42.tar.gz external_llvm-ad181304e1e203bb0a039f7581188afdbc1afb42.tar.bz2 |
Don't save a temporary string into a StringRef field.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98538 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCSectionELF.h')
-rw-r--r-- | include/llvm/MC/MCSectionELF.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/MC/MCSectionELF.h b/include/llvm/MC/MCSectionELF.h index 41c17bd..cdd2f73 100644 --- a/include/llvm/MC/MCSectionELF.h +++ b/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: |