[llvm-commits] [PATCH][RFC] PR10367: don't allow GlobalAlias's aliasee to be an arbitrary Constant
Chris Lattner
clattner at apple.com
Fri Jul 29 11:03:21 PDT 2011
On Jul 28, 2011, at 1:21 PM, Duncan Sands wrote:
> Hi Jay, thanks for working on this.
>
>> To summarise the PR, Chris said that a GlobalAlias's aliasee should
>> always be a GlobalValue (we shouldn't allow arbitrary Constants), and
>> the types of the alias and the aliasee shouldn't be required to match.
>
> If we go this way then we eliminate the possibility of having an alias into
> the middle of a global variable.
I don't see that this is something we can support. Aliases are a very simple conceptual model, it isn't clear that extending them to support this is a good cost/benefit tradeoff. Is this supported by ELF?
-Chris
More information about the llvm-commits
mailing list