diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-05-17 21:30:14 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-05-17 21:30:14 +0000 |
commit | 9d83a9315e54ebb56a49819b77c8597f3aff1d08 (patch) | |
tree | a9203c3b67d66a97c747fd9b8150574341f690ea /lib/CodeGen/CodeGenModule.cpp | |
parent | 6b9d068237959108fd26bc31fcd958acc6a9af3e (diff) | |
download | clang-9d83a9315e54ebb56a49819b77c8597f3aff1d08.tar.gz clang-9d83a9315e54ebb56a49819b77c8597f3aff1d08.tar.bz2 clang-9d83a9315e54ebb56a49819b77c8597f3aff1d08.tar.xz |
Update for llvm api change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209077 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | lib/CodeGen/CodeGenModule.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index 80f56e9bff..485beab740 100644 --- a/lib/CodeGen/CodeGenModule.cpp +++ b/lib/CodeGen/CodeGenModule.cpp @@ -2269,7 +2269,7 @@ void CodeGenModule::EmitAliasDefinition(GlobalDecl GD) { llvm::PointerType::getUnqual(DeclTy), 0); // Create the new alias itself, but don't set a name yet. - auto *GA = new llvm::GlobalAlias( + auto *GA = llvm::GlobalAlias::create( cast<llvm::PointerType>(Aliasee->getType())->getElementType(), 0, llvm::Function::ExternalLinkage, "", &getGlobalObjectInExpr(Diags, AA, Aliasee)); @@ -3197,8 +3197,8 @@ void CodeGenModule::EmitStaticExternCAliases() { IdentifierInfo *Name = I->first; llvm::GlobalValue *Val = I->second; if (Val && !getModule().getNamedValue(Name->getName())) - addUsedGlobal(new llvm::GlobalAlias(Name->getName(), - cast<llvm::GlobalObject>(Val))); + addUsedGlobal(llvm::GlobalAlias::create(Name->getName(), + cast<llvm::GlobalObject>(Val))); } } |