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