]> granicus.if.org Git - llvm/commitdiff
[llvm-nm][llvm-size] Use --double-dash options in tests
authorFangrui Song <maskray@google.com>
Fri, 26 Apr 2019 13:42:16 +0000 (13:42 +0000)
committerFangrui Song <maskray@google.com>
Fri, 26 Apr 2019 13:42:16 +0000 (13:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@359308 91177308-0d34-0410-b5e6-96231b3b80d8

test/tools/llvm-nm/ARM/macho-print-size.test
test/tools/llvm-nm/X86/archive-no-llvm-bc.test
test/tools/llvm-size/X86/test-common.s

index 5a8517a90128ec5fda1768e00b7eb273dee3d65b..92fe9ee2c3c5200952b9a65ec708be798627df23 100644 (file)
@@ -1,3 +1,3 @@
-@ RUN: llvm-nm -print-size -arch armv7m %p/Inputs/print-size.macho-armv7m 2>&1 | FileCheck %s
+@ RUN: llvm-nm --print-size --arch armv7m %p/Inputs/print-size.macho-armv7m 2>&1 | FileCheck %s
 
 @ CHECK: warning: sizes with -print-size for Mach-O files are always zero.
index d2c0d3676d850d983ca42ea2dc2cf1592c08133a..4f03e792fea001f749bf573d09b34d8df5c184c4 100644 (file)
@@ -2,7 +2,7 @@
 ; RUN: grep -v "module asm" %s | llvm-as -o %t/embedded.bc
 ; RUN: llc -I=%t -filetype=obj -o %t/obj.o %s
 ; RUN: llvm-ar crs %t/lib.a %t/obj.o
-; RUN: llvm-nm -m -no-llvm-bc %t/lib.a | FileCheck %s
+; RUN: llvm-nm -m --no-llvm-bc %t/lib.a | FileCheck %s
 
 target triple = "x86_64-apple-macosx10.11"
 
index 8445c784e723a90878ae15c87fc9dd73b725a24c..4b61d24f8323b7af9095ca5395ac445b61c10294 100644 (file)
@@ -1,10 +1,10 @@
-// #Check that with common switch commons are added to bss or 
+// #Check that with common switch commons are added to bss or
 // #Shown as *COM* otherwise their size is discounted
 // RUN: llvm-mc %s -o %t.o -filetype=obj -triple=x86_64-pc-linux
-// RUN: llvm-size -A -common %t.o | FileCheck --check-prefix="SYSV" %s
-// RUN: llvm-size -B -common %t.o| FileCheck --check-prefix="BSD" %s
-// RUN: llvm-size -A %t.o | FileCheck --check-prefix="SYSVNOCOMM" %s
-// RUN: llvm-size -B %t.o| FileCheck --check-prefix="BSDNOCOMM" %s
+// RUN: llvm-size -A --common %t.o | FileCheck --check-prefix=SYSV %s
+// RUN: llvm-size -B --common %t.o | FileCheck --check-prefix=BSD %s
+// RUN: llvm-size -A %t.o | FileCheck --check-prefix=SYSVNOCOMM %s
+// RUN: llvm-size -B %t.o | FileCheck --check-prefix=BSDNOCOMM %s
        .type   x,@object
        .comm   x,4,4
        .type   y,@object