summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-01-20 20:13:11 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-01-20 20:13:11 +0000
commit8ff1610f06646b0f62060df06c194214bd992260 (patch)
tree4508065335b9d150917d6ddcd3a340a1d110d9de /clang/lib/CodeGen
parenta69e5b8b9d32801ed0db5fe2c112a9f81808ddee (diff)
downloadbcm5719-llvm-8ff1610f06646b0f62060df06c194214bd992260.tar.gz
bcm5719-llvm-8ff1610f06646b0f62060df06c194214bd992260.zip
Simplify further.
Thanks to David Blaikie for the push. llvm-svn: 199685
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index a3d575c6e59..88e6e66f9c0 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -2420,8 +2420,7 @@ CodeGenModule::GetAddrOfConstantCFString(const StringLiteral *Literal) {
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(const StringLiteral *Literal) {
"_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;
OpenPOWER on IntegriCloud