[llvm-commits] Function aliases

Chris Lattner clattner at apple.com
Fri Apr 20 17:49:55 PDT 2007


> Why not simply reinsert the aliased GV into the symbol table under  
> the alias name? In this manner, alias objects would not need to  
> derive from GlobalValue at all. Aliases could be stored in a list  
> on the side as you describe, solving the memory usage problem. The  
> majority of code could remain ignorant of them, resolving the code  
> duplication Anton was worried about.

Unfortunately, this won't work.  Values can have at most one name in  
LLVM,

-Chris



More information about the llvm-commits mailing list