summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-01-20 15:19:43 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-01-20 15:19:43 +0000
commit63582d605e8f55bf9fd5e7bb35f0c35512dac007 (patch)
tree827e2b091d1b75d0463bed6b1826bb8db800d83d /clang/lib/CodeGen/CodeGenModule.cpp
parent05a63787a2bfcd3470891f4b0460a1eeed0ecb34 (diff)
downloadbcm5719-llvm-63582d605e8f55bf9fd5e7bb35f0c35512dac007.tar.gz
bcm5719-llvm-63582d605e8f55bf9fd5e7bb35f0c35512dac007.zip
Remove virtual methods that were added in 2009 and still had 1 implementation.
llvm-svn: 199665
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp16
1 files changed, 9 insertions, 7 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index a3f3af38d96..a3d575c6e59 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -2420,8 +2420,8 @@ CodeGenModule::GetAddrOfConstantCFString(const StringLiteral *Literal) {
GV = new llvm::GlobalVariable(getModule(), C->getType(), true,
llvm::GlobalVariable::PrivateLinkage, C,
"_unnamed_cfstring_");
- if (const char *Sect = getTarget().getCFStringSection())
- GV->setSection(Sect);
+ const char *CFStringSection = "__DATA,__cfstring";
+ GV->setSection(CFStringSection);
Entry.setValue(GV);
return GV;
@@ -2532,12 +2532,14 @@ CodeGenModule::GetAddrOfConstantString(const StringLiteral *Literal) {
GV = new llvm::GlobalVariable(getModule(), C->getType(), true,
llvm::GlobalVariable::PrivateLinkage, C,
"_unnamed_nsstring_");
+ const char *NSStringSection = "__OBJC,__cstring_object,regular,no_dead_strip";
+ const char *NSStringNonFragileABISection =
+ "__DATA, __objc_stringobj, regular, no_dead_strip";
// FIXME. Fix section.
- if (const char *Sect =
- LangOpts.ObjCRuntime.isNonFragile()
- ? getTarget().getNSStringNonFragileABISection()
- : getTarget().getNSStringSection())
- GV->setSection(Sect);
+ const char *Sect = LangOpts.ObjCRuntime.isNonFragile()
+ ? NSStringNonFragileABISection
+ : NSStringSection;
+ GV->setSection(Sect);
Entry.setValue(GV);
return GV;
OpenPOWER on IntegriCloud