diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2018-02-07 19:04:41 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2018-02-07 19:04:41 +0000 |
commit | deb10becf39672dd72d3a4c0143db2838ec1ccb2 (patch) | |
tree | be1bc0f17bafb463b82b0113c95cf8280b8e53a4 /clang/lib/CodeGen/CodeGenModule.h | |
parent | 123c749ee9973c20bbcb9ecfe6f9b0860b55bc51 (diff) | |
download | bcm5719-llvm-deb10becf39672dd72d3a4c0143db2838ec1ccb2.tar.gz bcm5719-llvm-deb10becf39672dd72d3a4c0143db2838ec1ccb2.zip |
Don't pass ForDefinition_t in places it is redundant.
I found this while looking at the ppc failures caused by the dso_local
change.
The issue was that the patch would produce the wrong answer for
available_externally. Having ForDefinition_t available in places where
the code can just check the linkage is a bit of a foot gun.
This patch removes the ForDefiniton_t argument in places where the
linkage is already know.
llvm-svn: 324499
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h index 61b97e61248..33ec27ff175 100644 --- a/clang/lib/CodeGen/CodeGenModule.h +++ b/clang/lib/CodeGen/CodeGenModule.h @@ -719,8 +719,7 @@ public: llvm::ConstantInt *getSize(CharUnits numChars); /// Set the visibility for the given LLVM GlobalValue. - void setGlobalVisibility(llvm::GlobalValue *GV, const NamedDecl *D, - ForDefinition_t IsForDefinition) const; + void setGlobalVisibility(llvm::GlobalValue *GV, const NamedDecl *D) const; /// Set the TLS mode for the given LLVM GlobalValue for the thread-local /// variable declaration D. @@ -1274,8 +1273,7 @@ private: /// Set function attributes for a function declaration. void SetFunctionAttributes(GlobalDecl GD, llvm::Function *F, - bool IsIncompleteFunction, bool IsThunk, - ForDefinition_t IsForDefinition); + bool IsIncompleteFunction, bool IsThunk); void EmitGlobalDefinition(GlobalDecl D, llvm::GlobalValue *GV = nullptr); |