diff options
author | Jan Sjödin <jan_sjodin@yahoo.com> | 2012-09-18 18:47:58 +0000 |
---|---|---|
committer | Jan Sjödin <jan_sjodin@yahoo.com> | 2012-09-18 18:47:58 +0000 |
commit | 18505b352212a5e9eac07a8555ded232b5ece894 (patch) | |
tree | e5ef7d77a1e7703b625d5de82d50c26e4944cdc7 /test/Other/llvm-nm-without-aliases.ll | |
parent | 3b62b01f9a6fbecbc8aa22750d797459f8ae6417 (diff) | |
download | external_llvm-18505b352212a5e9eac07a8555ded232b5ece894.zip external_llvm-18505b352212a5e9eac07a8555ded232b5ece894.tar.gz external_llvm-18505b352212a5e9eac07a8555ded232b5ece894.tar.bz2 |
Add hidden flag to exclude aliases from output.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164158 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Other/llvm-nm-without-aliases.ll')
-rw-r--r-- | test/Other/llvm-nm-without-aliases.ll | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/Other/llvm-nm-without-aliases.ll b/test/Other/llvm-nm-without-aliases.ll new file mode 100644 index 0000000..9d9408c --- /dev/null +++ b/test/Other/llvm-nm-without-aliases.ll @@ -0,0 +1,25 @@ +; RUN: llvm-as < %s > %t +; RUN: llvm-nm -without-aliases < %t | FileCheck %s +; RUN: llvm-nm < %t | FileCheck --check-prefix=WITH %s + +; CHECK-NOT: T a0bar +; CHECK-NOT: T a0foo +; CHECK: T bar +; CHECK: T foo + +; WITH: T a0bar +; WITH: T a0foo +; WITH: T bar +; WITH: T foo + +@a0foo = alias void ()* @foo + +define void @foo() { + ret void +} + +@a0bar = alias void ()* @bar + +define void @bar() { + ret void +} |