Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2021-10-29 04:38:05 +0300
committerDavid Blaikie <dblaikie@gmail.com>2021-10-29 04:38:05 +0300
commit8f46ddb1843018b393c66dec133532d5505b709d (patch)
tree24e3174e1a66f832924fb2803fc28f6f09aa80c5 /cross-project-tests
parentfcd6d56602615a8c016c5f752003de5cd42e2cda (diff)
Migrate the roundtrip tests to work similar to the llgdb tests
I'm not sure if there's a way to make this a bit more general - the property that matters is that there's /some/ itanium ABI target the tests can use to compile - not link or run in this case. But this seems sufficient for the llgdb tests, so it should be sufficient (though perhaps not necessary) for this roundtrip test.
Diffstat (limited to 'cross-project-tests')
-rw-r--r--cross-project-tests/debuginfo-tests/clang_llvm_roundtrip/lit.local.cfg3
-rw-r--r--cross-project-tests/debuginfo-tests/clang_llvm_roundtrip/simplified_template_names.cpp3
2 files changed, 4 insertions, 2 deletions
diff --git a/cross-project-tests/debuginfo-tests/clang_llvm_roundtrip/lit.local.cfg b/cross-project-tests/debuginfo-tests/clang_llvm_roundtrip/lit.local.cfg
new file mode 100644
index 000000000000..3ce1bcf85c2e
--- /dev/null
+++ b/cross-project-tests/debuginfo-tests/clang_llvm_roundtrip/lit.local.cfg
@@ -0,0 +1,3 @@
+# In MSVC mode DWARF isn't produced & is needed for these tests
+if 'native' not in config.available_features or config.is_msvc:
+ config.unsupported = True
diff --git a/cross-project-tests/debuginfo-tests/clang_llvm_roundtrip/simplified_template_names.cpp b/cross-project-tests/debuginfo-tests/clang_llvm_roundtrip/simplified_template_names.cpp
index 6fe336011092..166c372f94c9 100644
--- a/cross-project-tests/debuginfo-tests/clang_llvm_roundtrip/simplified_template_names.cpp
+++ b/cross-project-tests/debuginfo-tests/clang_llvm_roundtrip/simplified_template_names.cpp
@@ -1,6 +1,5 @@
-// RUN: %clang %s -c -o - -g -Xclang -gsimple-template-names=mangled -Xclang -debug-forward-template-params \
+// RUN: %clang %target_itanium_abi_host_triple %s -c -o - -g -Xclang -gsimple-template-names=mangled -Xclang -debug-forward-template-params \
// RUN: | llvm-dwarfdump --verify -
-// REQUIRES: native
template<typename ...Ts>
struct t1 {
};