[llvm-nm] Avoid -opaque-pointers option in test (NFC)
authorNikita Popov <npopov@redhat.com>
Tue, 20 Jun 2023 14:34:58 +0000 (16:34 +0200)
committerNikita Popov <npopov@redhat.com>
Tue, 20 Jun 2023 14:35:54 +0000 (16:35 +0200)
Commit the typed pointer bitcode file instead of producing it,
as this will not be possible in the future anymore.

llvm/test/tools/llvm-nm/Inputs/typed.bc [new file with mode: 0644]
llvm/test/tools/llvm-nm/opaque-pointers.ll

diff --git a/llvm/test/tools/llvm-nm/Inputs/typed.bc b/llvm/test/tools/llvm-nm/Inputs/typed.bc
new file mode 100644 (file)
index 0000000..c45fb06
Binary files /dev/null and b/llvm/test/tools/llvm-nm/Inputs/typed.bc differ
index 0bda500..151cf5e 100644 (file)
@@ -1,6 +1,5 @@
-; RUN: llvm-as -opaque-pointers=0 < %s > %t.typed.bc
-; RUN: llvm-as -opaque-pointers=1 < %s > %t.opaque.bc
-; RUN: llvm-ar cr %t.a %t.typed.bc %t.opaque.bc
+; RUN: llvm-as < %s > %t.opaque.bc
+; RUN: llvm-ar cr %t.a %S/Inputs/typed.bc %t.opaque.bc
 ; RUN: llvm-nm --just-symbol-name %t.a | FileCheck %s
 
 ; CHECK-LABEL: typed.bc: