From 6172277e9f3d899d588ac324e20ef80d753d277a Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Sat, 17 May 2014 19:58:16 +0000 Subject: Update for llvm api change. llvm-svn: 209074 --- clang/lib/CodeGen/CodeGenModule.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'clang/lib/CodeGen/CodeGenModule.cpp') diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 2d11148..80f56e9 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(Aliasee->getType())->getElementType(), + cast(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(Val), &getModule())); + addUsedGlobal(new llvm::GlobalAlias(Name->getName(), + cast(Val))); } } -- cgit v1.1