summaryrefslogtreecommitdiffstats
path: root/clang/test/Frontend/ast-codegen.c
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2018-02-07 19:16:49 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2018-02-07 19:16:49 +0000
commitfa9874c33b4ab54706ddba853424b7c8a68d424d (patch)
tree218d88bebf10874393ae4b659b704b4e094d8c73 /clang/test/Frontend/ast-codegen.c
parentdeb10becf39672dd72d3a4c0143db2838ec1ccb2 (diff)
downloadbcm5719-llvm-fa9874c33b4ab54706ddba853424b7c8a68d424d.tar.gz
bcm5719-llvm-fa9874c33b4ab54706ddba853424b7c8a68d424d.zip
Recommit r324107.
It now includes a fix to not mark available_externally definitions as dso_local. Original message: Start setting dso_local in clang. This starts adding dso_local to clang. The hope is to eventually have TargetMachine::shouldAssumeDsoLocal go away. My objective for now is to move enough of it to clang to remove the need for the TargetMachine one to handle PIE copy relocations and -fno-plt. With that it should then be easy to implement a -fno-copy-reloc in clang. This patch just adds the cases where we assume a symbol to be local based on the file being compiled for an executable or a shared library. llvm-svn: 324500
Diffstat (limited to 'clang/test/Frontend/ast-codegen.c')
-rw-r--r--clang/test/Frontend/ast-codegen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Frontend/ast-codegen.c b/clang/test/Frontend/ast-codegen.c
index 4a3f8a3b79f..e1140fdd8b2 100644
--- a/clang/test/Frontend/ast-codegen.c
+++ b/clang/test/Frontend/ast-codegen.c
@@ -5,9 +5,9 @@
// CHECK: module asm "foo"
__asm__("foo");
-// CHECK: @g0 = common global i32 0, align 4
+// CHECK: @g0 = common dso_local global i32 0, align 4
int g0;
-// CHECK: define i32 @f0()
+// CHECK: define dso_local i32 @f0()
int f0() {
}
OpenPOWER on IntegriCloud