[llvm] [DebugInfo] Use %t for object file instead of -. (PR #98141)
Abid Qadeer via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 9 03:46:05 PDT 2024
https://github.com/abidh updated https://github.com/llvm/llvm-project/pull/98141
>From d2ac85ff1ec34f99490d5224d3cdb9b41ae2956c Mon Sep 17 00:00:00 2001
From: Abid Qadeer <haqadeer at amd.com>
Date: Tue, 9 Jul 2024 11:05:24 +0100
Subject: [PATCH 1/2] [DebugInfo] Use tmp object file instead of - for output.
---
llvm/test/DebugInfo/subrange-missing-upperBound.ll | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/llvm/test/DebugInfo/subrange-missing-upperBound.ll b/llvm/test/DebugInfo/subrange-missing-upperBound.ll
index ace5bf9554c80..e5981f4245d92 100644
--- a/llvm/test/DebugInfo/subrange-missing-upperBound.ll
+++ b/llvm/test/DebugInfo/subrange-missing-upperBound.ll
@@ -1,4 +1,6 @@
-; RUN: %llc_dwarf %s -filetype=obj -o - | llvm-dwarfdump - | FileCheck %s
+; RUN: %llc_dwarf %s -filetype=obj -o %t
+; RUN: llvm-dwarfdump -debug-info %t | FileCheck %s
+
; ModuleID = 'test.ll'
source_filename = "test.f90"
>From 7e4b9313975290a86d7dac61e1eea9d80e1bd39d Mon Sep 17 00:00:00 2001
From: Abid Qadeer <haqadeer at amd.com>
Date: Tue, 9 Jul 2024 11:43:51 +0100
Subject: [PATCH 2/2] Add '; REQUIRES: object-emission'.
---
llvm/test/DebugInfo/subrange-missing-upperBound.ll | 1 +
1 file changed, 1 insertion(+)
diff --git a/llvm/test/DebugInfo/subrange-missing-upperBound.ll b/llvm/test/DebugInfo/subrange-missing-upperBound.ll
index e5981f4245d92..3483dd1a9f4ee 100644
--- a/llvm/test/DebugInfo/subrange-missing-upperBound.ll
+++ b/llvm/test/DebugInfo/subrange-missing-upperBound.ll
@@ -1,5 +1,6 @@
; RUN: %llc_dwarf %s -filetype=obj -o %t
; RUN: llvm-dwarfdump -debug-info %t | FileCheck %s
+; REQUIRES: object-emission
; ModuleID = 'test.ll'
More information about the llvm-commits
mailing list