[llvm] 79cade5 - [debug-info][NFC] Set -mtriple to avoid the test failure under other targets.

via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 8 21:56:47 PDT 2021


Author: Esme-Yi
Date: 2021-04-09T04:53:59Z
New Revision: 79cade52ed9406bd59936f51dc19f6f20f1fe352

URL: https://github.com/llvm/llvm-project/commit/79cade52ed9406bd59936f51dc19f6f20f1fe352
DIFF: https://github.com/llvm/llvm-project/commit/79cade52ed9406bd59936f51dc19f6f20f1fe352.diff

LOG: [debug-info][NFC] Set -mtriple to avoid the test failure under other targets.

Added: 
    

Modified: 
    llvm/test/DebugInfo/XCOFF/dbx-inlinedstrings.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/DebugInfo/XCOFF/dbx-inlinedstrings.ll b/llvm/test/DebugInfo/XCOFF/dbx-inlinedstrings.ll
index 7f65d300d6fe..7efd6d924a4a 100644
--- a/llvm/test/DebugInfo/XCOFF/dbx-inlinedstrings.ll
+++ b/llvm/test/DebugInfo/XCOFF/dbx-inlinedstrings.ll
@@ -1,5 +1,10 @@
-; RUN: llc -debugger-tune=dbx -filetype=obj < %s | llvm-dwarfdump -v - | \
-; RUN:   FileCheck %s -implicit-check-not DW_FORM_strp
+; The original purpose of this test case was to verify DBX under AIX, 
+; but XCOFF does not support object mode for now. Since the option
+; `-debugger-tune=dbx` is target-independent, set `-mtriple` to 
+; `powerpc-unknown-linux` for now.
+
+; RUN: llc -mtriple powerpc-unknown-linux -debugger-tune=dbx -filetype=obj < %s \
+; RUN:   | llvm-dwarfdump -v - | FileCheck %s -implicit-check-not DW_FORM_strp
 
 ; CHECK:  DW_AT_producer [DW_FORM_string]	("clang version 12.0.0")
 


        


More information about the llvm-commits mailing list