summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2018-02-28 00:06:01 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2018-02-28 00:06:01 +0000
commitfa2fc906d2708be6e868e80fec4806f24dcd6f2b (patch)
treeb1431f5d01c8761cbd5f0198554c1253ddfc5851 /clang/lib/CodeGen/CodeGenModule.cpp
parent37254065ddd3d4a85450b04a2e7ba2b8ae4439fe (diff)
downloadbcm5719-llvm-fa2fc906d2708be6e868e80fec4806f24dcd6f2b.tar.gz
bcm5719-llvm-fa2fc906d2708be6e868e80fec4806f24dcd6f2b.zip
Pass a GlobalDecl to setAliasAttributes. NFC.
This just makes a followup change easier to read. llvm-svn: 326270
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index 36a0b9e9e4f..56eb8ada481 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -1248,8 +1248,8 @@ void CodeGenModule::SetCommonAttributes(const Decl *D,
addUsedGlobal(GV);
}
-void CodeGenModule::setAliasAttributes(const Decl *D,
- llvm::GlobalValue *GV) {
+void CodeGenModule::setAliasAttributes(GlobalDecl GD, llvm::GlobalValue *GV) {
+ const Decl *D = GD.getDecl();
SetCommonAttributes(D, GV);
// Process the dllexport attribute based on whether the original definition
@@ -3675,7 +3675,7 @@ void CodeGenModule::EmitAliasDefinition(GlobalDecl GD) {
if (VD->getTLSKind())
setTLSMode(GA, *VD);
- setAliasAttributes(D, GA);
+ setAliasAttributes(GD, GA);
}
void CodeGenModule::emitIFuncDefinition(GlobalDecl GD) {
OpenPOWER on IntegriCloud