diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2018-02-28 23:46:35 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2018-02-28 23:46:35 +0000 |
commit | 51ec5a9ce35ac7dcb8c88d4cdfff100d86e72457 (patch) | |
tree | a7301c18e9374cf2b39a09c53706344ed8f6b9a0 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | cb6d32034514bcdd152a95684ed309149f06070d (diff) | |
download | bcm5719-llvm-51ec5a9ce35ac7dcb8c88d4cdfff100d86e72457.tar.gz bcm5719-llvm-51ec5a9ce35ac7dcb8c88d4cdfff100d86e72457.zip |
Pass a GlobalDecl to SetInternalFunctionAttributes. NFC.
This just reduces the noise in a followup patch.
Part of D43900.
llvm-svn: 326385
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 56eb8ada481..fad3034f4d6 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -1341,9 +1341,10 @@ void CodeGenModule::setNonAliasAttributes(const Decl *D, getTargetCodeGenInfo().setTargetAttributes(D, GO, *this); } -void CodeGenModule::SetInternalFunctionAttributes(const Decl *D, +void CodeGenModule::SetInternalFunctionAttributes(GlobalDecl GD, llvm::Function *F, const CGFunctionInfo &FI) { + const Decl *D = GD.getDecl(); SetLLVMFunctionAttributes(D, FI, F); SetLLVMFunctionAttributesForDefinition(D, F); |