summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenObjC/nsvalue-objc-boxable-mac.m
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2016-09-18 16:12:14 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2016-09-18 16:12:14 +0000
commit3f307518f8bea834e7ba0fb522e990063d09cfb3 (patch)
tree58bb96b5a82d0dad24be2a2d7ee92939a55f4579 /clang/test/CodeGenObjC/nsvalue-objc-boxable-mac.m
parent0c54dc862e5c9dae681a43299126376757615cab (diff)
downloadbcm5719-llvm-3f307518f8bea834e7ba0fb522e990063d09cfb3.tar.gz
bcm5719-llvm-3f307518f8bea834e7ba0fb522e990063d09cfb3.zip
CodeGen: mark ObjC cstring literals as unnamed_addr
These are all emitted into a section with a cstring_literal attribute. The attribute permits the linker to coalesce the string contents. The address of the strings are not important. llvm-svn: 281855
Diffstat (limited to 'clang/test/CodeGenObjC/nsvalue-objc-boxable-mac.m')
-rw-r--r--clang/test/CodeGenObjC/nsvalue-objc-boxable-mac.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/CodeGenObjC/nsvalue-objc-boxable-mac.m b/clang/test/CodeGenObjC/nsvalue-objc-boxable-mac.m
index 0f7c37db18c..749dc0ec267 100644
--- a/clang/test/CodeGenObjC/nsvalue-objc-boxable-mac.m
+++ b/clang/test/CodeGenObjC/nsvalue-objc-boxable-mac.m
@@ -5,7 +5,7 @@
// CHECK: [[CLASS:@.*]] = external global %struct._class_t
// CHECK: [[NSVALUE:@.*]] = {{.*}}[[CLASS]]{{.*}}
// CHECK: [[RANGE_STR:.*]] = {{.*}}_NSRange=QQ{{.*}}
-// CHECK: [[METH:@.*]] = private constant {{.*}}valueWithBytes:objCType:{{.*}}
+// CHECK: [[METH:@.*]] = private unnamed_addr constant {{.*}}valueWithBytes:objCType:{{.*}}
// CHECK: [[VALUE_SEL:@.*]] = {{.*}}[[METH]]{{.*}}
// CHECK: [[POINT_STR:.*]] = {{.*}}_NSPoint=dd{{.*}}
// CHECK: [[SIZE_STR:.*]] = {{.*}}_NSSize=dd{{.*}}
OpenPOWER on IntegriCloud