[llvm-commits] [llvm] r98538 - /llvm/trunk/include/llvm/MC/MCSectionELF.h

Jeffrey Yasskin jyasskin at google.com
Sun Mar 14 23:59:21 PDT 2010


Author: jyasskin
Date: Mon Mar 15 01:59:21 2010
New Revision: 98538

URL: http://llvm.org/viewvc/llvm-project?rev=98538&view=rev
Log:
Don't save a temporary string into a StringRef field.

Modified:
    llvm/trunk/include/llvm/MC/MCSectionELF.h

Modified: llvm/trunk/include/llvm/MC/MCSectionELF.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/MCSectionELF.h?rev=98538&r1=98537&r2=98538&view=diff
==============================================================================
--- llvm/trunk/include/llvm/MC/MCSectionELF.h (original)
+++ llvm/trunk/include/llvm/MC/MCSectionELF.h Mon Mar 15 01:59:21 2010
@@ -39,7 +39,7 @@
 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:
   





More information about the llvm-commits mailing list