summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGObjCGNU.cpp
diff options
context:
space:
mode:
authorDavid Chisnall <csdavec@swan.ac.uk>2018-12-27 14:44:36 +0000
committerDavid Chisnall <csdavec@swan.ac.uk>2018-12-27 14:44:36 +0000
commitddd06821c466bb4c2b414067d6a3e924d001a092 (patch)
tree698b907c42478dd985b85295df80054973f5da0c /clang/lib/CodeGen/CGObjCGNU.cpp
parent9352f4706a7aaf3d25ff4158ba4f83fbc9e86425 (diff)
downloadbcm5719-llvm-ddd06821c466bb4c2b414067d6a3e924d001a092.tar.gz
bcm5719-llvm-ddd06821c466bb4c2b414067d6a3e924d001a092.zip
[objc-gnustep] Fix a copy-and-paste error.
We were emitting the null class symbol in the wrong section, which meant that programs that contained no Objective-C classes would fail to link. llvm-svn: 350092
Diffstat (limited to 'clang/lib/CodeGen/CGObjCGNU.cpp')
-rw-r--r--clang/lib/CodeGen/CGObjCGNU.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGObjCGNU.cpp b/clang/lib/CodeGen/CGObjCGNU.cpp
index cb140bf9e06..534650b1108 100644
--- a/clang/lib/CodeGen/CGObjCGNU.cpp
+++ b/clang/lib/CodeGen/CGObjCGNU.cpp
@@ -1547,7 +1547,7 @@ class CGObjCGNUstep2 : public CGObjCGNUstep {
sectionName<CategorySection>());
if (!EmittedClass) {
createNullGlobal(".objc_null_cls_init_ref", NULLPtr,
- sectionName<ClassReferenceSection>());
+ sectionName<ClassSection>());
createNullGlobal(".objc_null_class_ref", { NULLPtr, NULLPtr },
sectionName<ClassReferenceSection>());
}
OpenPOWER on IntegriCloud