[dragonegg] r208996 - Update for llvm api change.

Duncan Sands duncan.sands at gmail.com
Fri May 16 10:24:21 PDT 2014


Hi Rafael,

On 16/05/14 18:13, Rafael Espindola wrote:
> Author: rafael
> Date: Fri May 16 11:13:07 2014
> New Revision: 208996
>
> URL: http://llvm.org/viewvc/llvm-project?rev=208996&view=rev
> Log:
> Update for llvm api change.
>
> Modified:
>      dragonegg/trunk/src/Backend.cpp
>
> Modified: dragonegg/trunk/src/Backend.cpp
> URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/src/Backend.cpp?rev=208996&r1=208995&r2=208996&view=diff
> ==============================================================================
> --- dragonegg/trunk/src/Backend.cpp (original)
> +++ dragonegg/trunk/src/Backend.cpp Fri May 16 11:13:07 2014
> @@ -984,8 +984,8 @@ static void emit_alias(tree decl, tree t
>
>     if (Linkage != GlobalValue::InternalLinkage && !IsWeakRef) {
>       // Create the LLVM alias.
> -    GlobalAlias *GA =
> -        new GlobalAlias(Aliasee->getType(), Linkage, "", Aliasee, TheModule);
> +    auto *GA = new GlobalAlias(Aliasee->getType()->getElementType(), Linkage,
> +                               "", Aliasee, TheModule);

I guess the GlobalAlias constructor was changed to take the type of the aliased 
global (a pointer type), rather than the pointee type?  Sounds like a sensible 
change!  If so, this patch is of course fine.

Ciao, Duncan.



More information about the llvm-commits mailing list