summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2018-02-23 00:22:15 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2018-02-23 00:22:15 +0000
commit3dd4981298b75226172f435382ddc110b7680129 (patch)
treee4d9280a3f74c867e0743459d7366d1298dcd024 /clang/lib/CodeGen/CodeGenModule.h
parent0dcc88a500e120f50716e6d3efc2a9cf5db6d570 (diff)
downloadbcm5719-llvm-3dd4981298b75226172f435382ddc110b7680129.tar.gz
bcm5719-llvm-3dd4981298b75226172f435382ddc110b7680129.zip
Simplify setting dso_local. NFC.
The value of dso_local can be computed from just IR properties and global information (object file type, command line options, etc). With this patch we no longer pass in the Decl. It was almost unused and making it fully unused guarantees that dso_local is consistent with the rest of the IR. llvm-svn: 325846
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h
index d85537b1c28..65342fe7eb7 100644
--- a/clang/lib/CodeGen/CodeGenModule.h
+++ b/clang/lib/CodeGen/CodeGenModule.h
@@ -721,7 +721,7 @@ public:
/// Set the visibility for the given LLVM GlobalValue.
void setGlobalVisibility(llvm::GlobalValue *GV, const NamedDecl *D) const;
- void setDSOLocal(llvm::GlobalValue *GV, const NamedDecl *D) const;
+ void setDSOLocal(llvm::GlobalValue *GV) const;
void setGVProperties(llvm::GlobalValue *GV, const NamedDecl *D) const;
OpenPOWER on IntegriCloud