[llvm] c41a1f6 - [DebugInfo] Pass linux triple to tests requiring ELF.
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 19 01:42:23 PST 2020
Author: Florian Hahn
Date: 2020-02-19T10:41:40+01:00
New Revision: c41a1f63b3c02039bb6a05f7084bdf95099d7aa9
URL: https://github.com/llvm/llvm-project/commit/c41a1f63b3c02039bb6a05f7084bdf95099d7aa9
DIFF: https://github.com/llvm/llvm-project/commit/c41a1f63b3c02039bb6a05f7084bdf95099d7aa9.diff
LOG: [DebugInfo] Pass linux triple to tests requiring ELF.
The tests added in D74425/commit a71feda24ea092ec14474216532b3ce9883b81ab
fail with an assertion on macOS, as they seem to require ELF support.
Passing a linux triple ensures the object files are using ELF.
This fixes some GreenDragon failures.
Added:
Modified:
llvm/test/tools/llvm-dwp/X86/info-v5.s
llvm/test/tools/llvm-dwp/X86/wrong-unit-type-info-v5.s
Removed:
################################################################################
diff --git a/llvm/test/tools/llvm-dwp/X86/info-v5.s b/llvm/test/tools/llvm-dwp/X86/info-v5.s
index fd482cf493b0..21fa22793a83 100644
--- a/llvm/test/tools/llvm-dwp/X86/info-v5.s
+++ b/llvm/test/tools/llvm-dwp/X86/info-v5.s
@@ -1,6 +1,6 @@
# this checks llvm-dwp handling of DWARFv5 Info section header.
-# RUN: llvm-mc --filetype=obj --split-dwarf-file=%t.dwo -dwarf-version=5 %s -o %t.o
+# RUN: llvm-mc --triple=x86_64-unknown-linux --filetype=obj --split-dwarf-file=%t.dwo -dwarf-version=5 %s -o %t.o
# RUN: llvm-dwp %t.dwo -o %t.dwp
# RUN: llvm-dwarfdump -v %t.dwp | FileCheck %s
diff --git a/llvm/test/tools/llvm-dwp/X86/wrong-unit-type-info-v5.s b/llvm/test/tools/llvm-dwp/X86/wrong-unit-type-info-v5.s
index 29ed20bd1915..fbcdc36da054 100644
--- a/llvm/test/tools/llvm-dwp/X86/wrong-unit-type-info-v5.s
+++ b/llvm/test/tools/llvm-dwp/X86/wrong-unit-type-info-v5.s
@@ -1,4 +1,4 @@
-# RUN: llvm-mc --filetype=obj --split-dwarf-file=%t.dwo -dwarf-version=5 %s -o %t.o
+# RUN: llvm-mc --triple=x86_64-unknown-linux --filetype=obj --split-dwarf-file=%t.dwo -dwarf-version=5 %s -o %t.o
# RUN: not llvm-dwp %t.dwo -o /dev/null 2>&1 | FileCheck %s
# CHECK: error: {{.*}}: unit type DW_UT_split_compile type not found in debug_info header. Unexpected unit type 0x12 found
More information about the llvm-commits
mailing list