提交 8d3dd39d 编写于 作者: S Samuel Holland

Correct minimum system LLVM version in tests

Since commit 9452a8df, the new debug info format is only generated
for LLVM 8 and newer versions. However, the tests still assume that LLVM
7 will use the new debug info format. Fix the tests (and a comment in
the code) to match the actual version check.
上级 52e88562
......@@ -1156,12 +1156,14 @@ fn prepare_union_metadata(
// Enums
//=-----------------------------------------------------------------------------
// DWARF variant support is only available starting in LLVM 7.
// DWARF variant support is only available starting in LLVM 8.
// Although the earlier enum debug info output did not work properly
// in all situations, it is better for the time being to continue to
// sometimes emit the old style rather than emit something completely
// useless when rust is compiled against LLVM 6 or older. This
// function decides which representation will be emitted.
// useless when rust is compiled against LLVM 6 or older. LLVM 7
// contains an early version of the DWARF variant support, and will
// crash when handling the new debug info format. This function
// decides which representation will be emitted.
fn use_enum_fallback(cx: &CodegenCx<'_, '_>) -> bool {
// On MSVC we have to use the fallback mode, because LLVM doesn't
// lower variant parts to PDB.
......
......@@ -4,7 +4,7 @@
// ignore-tidy-linelength
// ignore-windows
// min-system-llvm-version 7.0
// min-system-llvm-version 8.0
// compile-flags: -g -C no-prepopulate-passes
......
......@@ -4,7 +4,7 @@
// ignore-tidy-linelength
// ignore-windows
// min-system-llvm-version 7.0
// min-system-llvm-version 8.0
// compile-flags: -g -C no-prepopulate-passes
......
......@@ -4,7 +4,7 @@
// ignore-tidy-linelength
// ignore-windows
// min-system-llvm-version 7.0
// min-system-llvm-version 8.0
// compile-flags: -g -C no-prepopulate-passes
......
......@@ -4,7 +4,7 @@
// ignore-tidy-linelength
// ignore-windows
// min-system-llvm-version 7.0
// min-system-llvm-version 8.0
// compile-flags: -g -C no-prepopulate-passes
......
// ignore-tidy-linelength
// Require LLVM with DW_TAG_variant_part and a gdb or lldb that can read it.
// min-system-llvm-version: 7.0
// min-system-llvm-version: 8.0
// min-gdb-version: 8.2
// rust-lldb
......
......@@ -3,7 +3,7 @@
// min-lldb-version: 310
// Require LLVM with DW_TAG_variant_part and a gdb that can read it.
// min-system-llvm-version: 7.0
// min-system-llvm-version: 8.0
// min-gdb-version: 8.2
// compile-flags:-g
......
......@@ -2,7 +2,7 @@
// min-lldb-version: 310
// Require LLVM with DW_TAG_variant_part and a gdb that can read it.
// min-system-llvm-version: 7.0
// min-system-llvm-version: 8.0
// min-gdb-version: 8.2
// compile-flags:-g
......
......@@ -2,7 +2,7 @@
// Require LLVM with DW_TAG_variant_part and a gdb and lldb that can
// read it.
// min-system-llvm-version: 7.0
// min-system-llvm-version: 8.0
// min-gdb-version: 8.2
// rust-lldb
......
......@@ -2,7 +2,7 @@
// ignore-lldb
// Require LLVM with DW_TAG_variant_part and a gdb that can read it.
// min-system-llvm-version: 7.0
// min-system-llvm-version: 8.0
// min-gdb-version: 8.2
// compile-flags:-g
......
......@@ -2,7 +2,7 @@
// Require LLVM with DW_TAG_variant_part and a gdb and lldb that can
// read it.
// min-system-llvm-version: 7.0
// min-system-llvm-version: 8.0
// min-gdb-version: 8.2
// rust-lldb
......
......@@ -2,7 +2,7 @@
// Require LLVM with DW_TAG_variant_part and a gdb and lldb that can
// read it.
// min-system-llvm-version: 7.0
// min-system-llvm-version: 8.0
// min-gdb-version: 8.2
// rust-lldb
......
......@@ -2,7 +2,7 @@
// Require LLVM with DW_TAG_variant_part and a gdb and lldb that can
// read it.
// min-system-llvm-version: 7.0
// min-system-llvm-version: 8.0
// min-gdb-version: 8.2
// rust-lldb
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册