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
This commit is contained in:
Jeffrey Yasskin 2010-03-15 06:59:21 +00:00
parent 1f8008cf21
commit ad181304e1

View File

@ -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: