aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Chisnall <csdavec@swan.ac.uk>2009-09-14 19:04:10 +0000
committerDavid Chisnall <csdavec@swan.ac.uk>2009-09-14 19:04:10 +0000
commita7c5b0832cc78efa899463b8faa573a1473d53d2 (patch)
tree2343d7170171bccbffc84df1d659974f6bce74d2
parent8a51491d936d8c50480f3c3ca6647be12a7ad51f (diff)
Small fix to stop CGObjCGNU emitting symbols that break some versions of gas.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81778 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/CGObjCGNU.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGObjCGNU.cpp b/lib/CodeGen/CGObjCGNU.cpp
index dacc888303..63caebfeec 100644
--- a/lib/CodeGen/CGObjCGNU.cpp
+++ b/lib/CodeGen/CGObjCGNU.cpp
@@ -1394,7 +1394,7 @@ llvm::Function *CGObjCGNU::ModuleInitFunction() {
iter = TypedSelectors.begin(), iterEnd = TypedSelectors.end();
iter != iterEnd ; ++iter) {
Elements.push_back(ExportUniqueString(iter->first.first, ".objc_sel_name"));
- Elements.push_back(ExportUniqueString(iter->first.second,
+ Elements.push_back(MakeConstantString(iter->first.second,
".objc_sel_types"));
Selectors.push_back(llvm::ConstantStruct::get(SelStructTy, Elements));
Elements.clear();