r199685 - Simplify further.
    Rafael Espindola 
    rafael.espindola at gmail.com
       
    Mon Jan 20 12:13:11 PST 2014
    
    
  
Author: rafael
Date: Mon Jan 20 14:13:11 2014
New Revision: 199685
URL: http://llvm.org/viewvc/llvm-project?rev=199685&view=rev
Log:
Simplify further.
Thanks to David Blaikie for the push.
Modified:
    cfe/trunk/lib/CodeGen/CodeGenModule.cpp
Modified: cfe/trunk/lib/CodeGen/CodeGenModule.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenModule.cpp?rev=199685&r1=199684&r2=199685&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenModule.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenModule.cpp Mon Jan 20 14:13:11 2014
@@ -2420,8 +2420,7 @@ CodeGenModule::GetAddrOfConstantCFString
   GV = new llvm::GlobalVariable(getModule(), C->getType(), true,
                                 llvm::GlobalVariable::PrivateLinkage, C,
                                 "_unnamed_cfstring_");
-  const char *CFStringSection = "__DATA,__cfstring";
-  GV->setSection(CFStringSection);
+  GV->setSection("__DATA,__cfstring");
   Entry.setValue(GV);
 
   return GV;
@@ -2534,12 +2533,11 @@ CodeGenModule::GetAddrOfConstantString(c
                                 "_unnamed_nsstring_");
   const char *NSStringSection = "__OBJC,__cstring_object,regular,no_dead_strip";
   const char *NSStringNonFragileABISection =
-      "__DATA, __objc_stringobj, regular, no_dead_strip";
+      "__DATA,__objc_stringobj,regular,no_dead_strip";
   // FIXME. Fix section.
-  const char *Sect = LangOpts.ObjCRuntime.isNonFragile()
-                         ? NSStringNonFragileABISection
-                         : NSStringSection;
-  GV->setSection(Sect);
+  GV->setSection(LangOpts.ObjCRuntime.isNonFragile()
+                     ? NSStringNonFragileABISection
+                     : NSStringSection);
   Entry.setValue(GV);
   
   return GV;
    
    
More information about the cfe-commits
mailing list