diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-11-14 13:58:06 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-11-14 13:58:06 +0000 |
commit | 3d47402f2e8701c7ed340884720cc99727bd7f85 (patch) | |
tree | 568f707363f9b4f7aabccdfc734c385f780972b0 /test/CodeGen/PowerPC/mcm-9.ll | |
parent | 8cc5f7cd59c69250ab3b6a68e38405dcdb6a4b25 (diff) | |
download | external_llvm-3d47402f2e8701c7ed340884720cc99727bd7f85.zip external_llvm-3d47402f2e8701c7ed340884720cc99727bd7f85.tar.gz external_llvm-3d47402f2e8701c7ed340884720cc99727bd7f85.tar.bz2 |
Error if we see an alias to a declaration.
In ELF and COFF an alias is just another offset in a section. There is no way
to represent an alias to something in another file.
In MachO, the spec has the N_INDR type which should allow for exactly that, but
is not currently implemented. Given that it is specified but not implemented,
we error in codegen to avoid miscompiling but don't reject aliases to
declarations in the verifier to leave the option open of implementing it.
In the past we have used alias to declarations as a way of implementing
weakref, which is why it exists in some old tests which this patch updates.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194705 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PowerPC/mcm-9.ll')
-rw-r--r-- | test/CodeGen/PowerPC/mcm-9.ll | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/CodeGen/PowerPC/mcm-9.ll b/test/CodeGen/PowerPC/mcm-9.ll index e587f61..7906b6a 100644 --- a/test/CodeGen/PowerPC/mcm-9.ll +++ b/test/CodeGen/PowerPC/mcm-9.ll @@ -7,8 +7,7 @@ target datalayout = "E-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-f128:128:128-v128:128:128-n32:64" target triple = "powerpc64-unknown-linux-gnu" -@ei = external global i32 -@a = alias i32* @ei +@a = external global i32 define signext i32 @test_external() nounwind { entry: |