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 _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits