[llvm-commits] CVS: llvm/lib/VMCore/AsmWriter.cpp Globals.cpp Module.cpp Verifier.cpp

Chris Lattner clattner at apple.com
Sun Apr 29 11:07:55 PDT 2007


On Apr 29, 2007, at 3:38 AM, Anton Korobeynikov wrote:

> Chris,
>
>> This can use the new getAliaseeGlobal() method.
> Not here. We should distinguish, whether we have variable, function ot
> bitcast here and print them differently.

Ok, but the call can be used to dig the global out from under the  
constantexprs etc.

>> What does it mean for an alias to be a declaration?  I'd be fine with
>> them always returning true or false.  What code calls
>> GlobalValue::isDeclaration?
> I thought to use it inside linker. Call Alias->isDeclaration() and if
> not => do RAUW. I think it's ok to delegate isDeclaration() to  
> aliasee.

I must be missing something: isn't it *always* safe to RAUW uses of  
an alias with uses of its aliasee?

-Chris



More information about the llvm-commits mailing list