diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-03-12 20:15:49 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-03-12 20:15:49 +0000 |
commit | f3336bc1d52832a299d0530fb20071e8517bd80b (patch) | |
tree | 5cd5474e65ced36279d6bffcd33865c6045611d1 /llvm/test/Transforms/GlobalOpt/2009-02-15-BitcastAlias.ll | |
parent | bfee8d49c4dcb9674fc3ae5c39f131685c516663 (diff) | |
download | bcm5719-llvm-f3336bc1d52832a299d0530fb20071e8517bd80b.tar.gz bcm5719-llvm-f3336bc1d52832a299d0530fb20071e8517bd80b.zip |
Reject alias to undefined symbols in the verifier.
On ELF and COFF an alias is just another name for a position in the file.
There is no way to refer to a position in another file, so an alias to
undefined is meaningless.
MachO currently doesn't support aliases. The spec has a N_INDR, which when
implemented will have a different set of restrictions. Adding support for
it shouldn't be harder than any other IR extension.
For now, having the IR represent what is actually possible with current
tools makes it easier to fix the design of GlobalAlias.
llvm-svn: 203705
Diffstat (limited to 'llvm/test/Transforms/GlobalOpt/2009-02-15-BitcastAlias.ll')
-rw-r--r-- | llvm/test/Transforms/GlobalOpt/2009-02-15-BitcastAlias.ll | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/Transforms/GlobalOpt/2009-02-15-BitcastAlias.ll b/llvm/test/Transforms/GlobalOpt/2009-02-15-BitcastAlias.ll index a1b69efe1a7..d6a565ad10a 100644 --- a/llvm/test/Transforms/GlobalOpt/2009-02-15-BitcastAlias.ll +++ b/llvm/test/Transforms/GlobalOpt/2009-02-15-BitcastAlias.ll @@ -1,6 +1,6 @@ ; RUN: opt < %s -globalopt -@g = external global i32 +@g = global i32 0 @a = alias bitcast (i32* @g to i8*) |