[llvm-nm][llvm-size] Use --double-dash options in tests

llvm-svn: 359308
This commit is contained in:
Fangrui Song 2019-04-26 13:42:16 +00:00
parent 3153764c88
commit 41327e3522
3 changed files with 7 additions and 7 deletions

View 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.

View 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"

View 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