diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-07-13 06:07:58 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-07-13 06:07:58 +0000 |
commit | d6e669458c8d300f8ad7d3ebb684abfd89d67f3f (patch) | |
tree | 90645f1781311374e7af6f7288d2b4d3d4864860 /clang/lib/CodeGen/CodeGenFunction.h | |
parent | 9a92d4fb04d4b5b1780c632a15341149b227aee6 (diff) | |
download | llvm-d6e669458c8d300f8ad7d3ebb684abfd89d67f3f.zip llvm-d6e669458c8d300f8ad7d3ebb684abfd89d67f3f.tar.gz llvm-d6e669458c8d300f8ad7d3ebb684abfd89d67f3f.tar.bz2 |
Set the linkage before setting the visibility.
Otherwise the visibility setting code would not know that a given
function was available_externally.
Fixes PR24097.
llvm-svn: 242012
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index 58bec1c..f2bc402 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -1294,8 +1294,8 @@ public: void EmitMustTailThunk(const CXXMethodDecl *MD, llvm::Value *AdjustedThisPtr, llvm::Value *Callee); - /// GenerateThunk - Generate a thunk for the given method. - void GenerateThunk(llvm::Function *Fn, const CGFunctionInfo &FnInfo, + /// Generate a thunk for the given method. + void generateThunk(llvm::Function *Fn, const CGFunctionInfo &FnInfo, GlobalDecl GD, const ThunkInfo &Thunk); llvm::Function *GenerateVarArgsThunk(llvm::Function *Fn, |