diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-04-22 14:58:02 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-04-22 14:58:02 +0000 |
commit | 74f2e46eeff9e5ad001259a74c56a1b4d71776e3 (patch) | |
tree | 38def27a52541cec8867c80bb19097342a5d1911 /llvm/test/Feature/aliases.ll | |
parent | da466db02ad02b818dbbeeb6349330ca7b4a9514 (diff) | |
download | bcm5719-llvm-74f2e46eeff9e5ad001259a74c56a1b4d71776e3.tar.gz bcm5719-llvm-74f2e46eeff9e5ad001259a74c56a1b4d71776e3.zip |
Clarify that llvm.used can contain aliases.
Also add a check for llvm.used in the verifier and simplify clients now that
they can assume they have a ConstantArray.
llvm-svn: 180019
Diffstat (limited to 'llvm/test/Feature/aliases.ll')
-rw-r--r-- | llvm/test/Feature/aliases.ll | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/test/Feature/aliases.ll b/llvm/test/Feature/aliases.ll index d44dff4c43c..139381215ee 100644 --- a/llvm/test/Feature/aliases.ll +++ b/llvm/test/Feature/aliases.ll @@ -2,6 +2,8 @@ ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll ; RUN: diff %t1.ll %t2.ll +@llvm.used = appending global [1 x i8*] [i8* bitcast (i32* @foo1 to i8*)], section "llvm.metadata" + @bar = external global i32 @foo1 = alias i32* @bar @foo2 = alias i32* @bar |