From 3dfe4cf982d52603d2edfdede7b47735bd5f0f59 Mon Sep 17 00:00:00 2001 From: Francis Visoiu Mistrih Date: Wed, 13 Nov 2019 12:27:03 -0800 Subject: [PATCH] [dsymutil] Add -dump to llvm-bcanalyzer invocations --- llvm/test/tools/dsymutil/X86/remarks-linking-bundle.test | 2 +- .../test/tools/dsymutil/X86/remarks-linking-fat-bundle.test | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/llvm/test/tools/dsymutil/X86/remarks-linking-bundle.test b/llvm/test/tools/dsymutil/X86/remarks-linking-bundle.test index 92849b1b64f1..11b9a6f9d5ea 100644 --- a/llvm/test/tools/dsymutil/X86/remarks-linking-bundle.test +++ b/llvm/test/tools/dsymutil/X86/remarks-linking-bundle.test @@ -5,7 +5,7 @@ RUN: cat %p/../Inputs/remarks/basic.macho.remarks.x86_64 > %t/basic.macho.remark RUN: dsymutil -oso-prepend-path=%p/../Inputs -remarks-prepend-path=%p/../Inputs %t/basic.macho.remarks.x86_64 Check that the remark file in the bundle exists and is sane: -RUN: llvm-bcanalyzer %t/basic.macho.remarks.x86_64.dSYM/Contents/Resources/Remarks/basic.macho.remarks.x86_64 | FileCheck %s +RUN: llvm-bcanalyzer -dump %t/basic.macho.remarks.x86_64.dSYM/Contents/Resources/Remarks/basic.macho.remarks.x86_64 | FileCheck %s Now emit it in a different format: YAML. RUN: dsymutil -remarks-output-format=yaml -oso-prepend-path=%p/../Inputs -remarks-prepend-path=%p/../Inputs %t/basic.macho.remarks.x86_64 diff --git a/llvm/test/tools/dsymutil/X86/remarks-linking-fat-bundle.test b/llvm/test/tools/dsymutil/X86/remarks-linking-fat-bundle.test index 31ece2abdb7f..c0b4beffee4f 100644 --- a/llvm/test/tools/dsymutil/X86/remarks-linking-fat-bundle.test +++ b/llvm/test/tools/dsymutil/X86/remarks-linking-fat-bundle.test @@ -7,9 +7,9 @@ RUN: cat %p/../Inputs/remarks/fat.macho.remarks.x86 > %t/fat.macho.remarks.x86 RUN: dsymutil -oso-prepend-path=%p/../Inputs -remarks-prepend-path=%p/../Inputs %t/fat.macho.remarks.x86 Check that the remark files in the bundle exist and are all sane: -RUN: llvm-bcanalyzer %t/fat.macho.remarks.x86.dSYM/Contents/Resources/Remarks/fat.macho.remarks.x86-x86_64h | FileCheck %s -RUN: llvm-bcanalyzer %t/fat.macho.remarks.x86.dSYM/Contents/Resources/Remarks/fat.macho.remarks.x86-x86_64 | FileCheck %s -RUN: llvm-bcanalyzer %t/fat.macho.remarks.x86.dSYM/Contents/Resources/Remarks/fat.macho.remarks.x86-i386 | FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-i386 +RUN: llvm-bcanalyzer -dump %t/fat.macho.remarks.x86.dSYM/Contents/Resources/Remarks/fat.macho.remarks.x86-x86_64h | FileCheck %s +RUN: llvm-bcanalyzer -dump %t/fat.macho.remarks.x86.dSYM/Contents/Resources/Remarks/fat.macho.remarks.x86-x86_64 | FileCheck %s +RUN: llvm-bcanalyzer -dump %t/fat.macho.remarks.x86.dSYM/Contents/Resources/Remarks/fat.macho.remarks.x86-i386 | FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-i386 CHECK: