summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2018-02-02 17:17:39 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2018-02-02 17:17:39 +0000
commit7e34a308ff8d9270d2654ce0e8ed9e1600676afb (patch)
tree927ab52990faf9c3743ace3cfdd9582c9e150dca /clang/lib/CodeGen/CodeGenModule.h
parente538fc74d4c0d30f8c652c3f4e46375339e9d27b (diff)
downloadbcm5719-llvm-7e34a308ff8d9270d2654ce0e8ed9e1600676afb.tar.gz
bcm5719-llvm-7e34a308ff8d9270d2654ce0e8ed9e1600676afb.zip
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: 324107
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h
index 42e9e1be316..3ae041e8d5e 100644
--- a/clang/lib/CodeGen/CodeGenModule.h
+++ b/clang/lib/CodeGen/CodeGenModule.h
@@ -722,6 +722,12 @@ public:
void setGlobalVisibility(llvm::GlobalValue *GV, const NamedDecl *D,
ForDefinition_t IsForDefinition) const;
+ void setDSOLocal(llvm::GlobalValue *GV, const NamedDecl *D,
+ ForDefinition_t IsForDefinition) const;
+
+ void setGVProperties(llvm::GlobalValue *GV, const NamedDecl *D,
+ ForDefinition_t IsForDefinition) const;
+
/// Set the TLS mode for the given LLVM GlobalValue for the thread-local
/// variable declaration D.
void setTLSMode(llvm::GlobalValue *GV, const VarDecl &D) const;
OpenPOWER on IntegriCloud