diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-02-27 19:01:11 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-02-27 19:01:11 +0000 |
commit | 5179a4ea28b92e7f099abe334973df21db66c289 (patch) | |
tree | 9a431c67a25a8408689839427cd8b0e2b9d7c086 /clang/test/CodeGenObjC/non-lazy-classes.m | |
parent | 7fe38e1ade9a60d6d582cb2e6ab7ad9e068acebb (diff) | |
download | bcm5719-llvm-5179a4ea28b92e7f099abe334973df21db66c289.tar.gz bcm5719-llvm-5179a4ea28b92e7f099abe334973df21db66c289.zip |
Use private linkage for globals we already name with \01L and \01l.
In llvm the only semantic difference between internal and private is that llvm
tries to hide private globals my mangling them with a private prefix. Since
the globals changed by this patch already had the magic don't mangle marker,
there should be no change in the generated assembly.
A followup patch should then be able to drop the \01L and \01l prefixes and let
llvm mangle as appropriate.
llvm-svn: 202419
Diffstat (limited to 'clang/test/CodeGenObjC/non-lazy-classes.m')
-rw-r--r-- | clang/test/CodeGenObjC/non-lazy-classes.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/CodeGenObjC/non-lazy-classes.m b/clang/test/CodeGenObjC/non-lazy-classes.m index d95cb78d4b1..760ddad068c 100644 --- a/clang/test/CodeGenObjC/non-lazy-classes.m +++ b/clang/test/CodeGenObjC/non-lazy-classes.m @@ -1,6 +1,6 @@ // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -o %t %s -// RUN: grep '@".01L_OBJC_LABEL_NONLAZY_CLASS_$" = internal global \[1 x .*\] .*@"OBJC_CLASS_$_A".*, section "__DATA, __objc_nlclslist, regular, no_dead_strip", align 8' %t -// RUN: grep '@".01L_OBJC_LABEL_NONLAZY_CATEGORY_$" = internal global \[1 x .*\] .*@".01l_OBJC_$_CATEGORY_A_$_Cat".*, section "__DATA, __objc_nlcatlist, regular, no_dead_strip", align 8' %t +// RUN: grep '@".01L_OBJC_LABEL_NONLAZY_CLASS_$" = private global \[1 x .*\] .*@"OBJC_CLASS_$_A".*, section "__DATA, __objc_nlclslist, regular, no_dead_strip", align 8' %t +// RUN: grep '@".01L_OBJC_LABEL_NONLAZY_CATEGORY_$" = private global \[1 x .*\] .*@".01l_OBJC_$_CATEGORY_A_$_Cat".*, section "__DATA, __objc_nlcatlist, regular, no_dead_strip", align 8' %t @interface A @end @implementation A |