diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-05-17 19:58:16 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-05-17 19:58:16 +0000 |
commit | 6172277e9f3d899d588ac324e20ef80d753d277a (patch) | |
tree | cccea3e0e751939e56259003d4ac88ea758b8159 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 83705658205c8767ee024513297e5d921eca6db6 (diff) | |
download | bcm5719-llvm-6172277e9f3d899d588ac324e20ef80d753d277a.tar.gz bcm5719-llvm-6172277e9f3d899d588ac324e20ef80d753d277a.zip |
Update for llvm api change.
llvm-svn: 209074
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 2d11148d9fd..80f56e9bff3 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -2270,9 +2270,9 @@ void CodeGenModule::EmitAliasDefinition(GlobalDecl GD) { // Create the new alias itself, but don't set a name yet. auto *GA = new llvm::GlobalAlias( - cast<llvm::PointerType>(Aliasee->getType())->getElementType(), + cast<llvm::PointerType>(Aliasee->getType())->getElementType(), 0, llvm::Function::ExternalLinkage, "", - &getGlobalObjectInExpr(Diags, AA, Aliasee), &getModule()); + &getGlobalObjectInExpr(Diags, AA, Aliasee)); if (Entry) { if (GA->getAliasee() == Entry) { @@ -3197,9 +3197,8 @@ void CodeGenModule::EmitStaticExternCAliases() { IdentifierInfo *Name = I->first; llvm::GlobalValue *Val = I->second; if (Val && !getModule().getNamedValue(Name->getName())) - addUsedGlobal(new llvm::GlobalAlias( - Val->getType()->getElementType(), Val->getLinkage(), Name->getName(), - cast<llvm::GlobalObject>(Val), &getModule())); + addUsedGlobal(new llvm::GlobalAlias(Name->getName(), + cast<llvm::GlobalObject>(Val))); } } |