aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2023-08-23 17:12:41 -0700
committerLang Hames <lhames@gmail.com>2023-08-23 17:19:07 -0700
commit8a62d6ba7edc3a7d397e52884a9ce63b4e579ae1 (patch)
treec6f5cb31d1a1ab98d5414fdc806f7827b14e62bf
parenta738bdf35eaa3bb48b7d8022e2aaa352cff909ba (diff)
downloadllvm-8a62d6ba7edc3a7d397e52884a9ce63b4e579ae1.zip
llvm-8a62d6ba7edc3a7d397e52884a9ce63b4e579ae1.tar.gz
llvm-8a62d6ba7edc3a7d397e52884a9ce63b4e579ae1.tar.bz2
[ORC][clang-repl] Fix UnitTest after 122ebe3b500.
Commit 122ebe3b500 changed the way that we look up eh-frame registration functions. This made LLJIT work "out of the box" in some Linux configs that didn't work before, but caused InterpreterExceptionTest to start failing: The test was skipped if a construction of a basic LLJIT config failed, but the test actually depended on debugger support working too. When the basic config started working we no longer skipped the test, then failed due to missing debugger support. I've extended the skip-test check to include the debugger support requirement, which should fix the issue.
-rw-r--r--clang/unittests/Interpreter/ExceptionTests/InterpreterExceptionTest.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/unittests/Interpreter/ExceptionTests/InterpreterExceptionTest.cpp b/clang/unittests/Interpreter/ExceptionTests/InterpreterExceptionTest.cpp
index 70e10b1..8700f50 100644
--- a/clang/unittests/Interpreter/ExceptionTests/InterpreterExceptionTest.cpp
+++ b/clang/unittests/Interpreter/ExceptionTests/InterpreterExceptionTest.cpp
@@ -52,7 +52,9 @@ TEST(InterpreterTest, CatchException) {
llvm::InitializeNativeTargetAsmPrinter();
{
- auto J = llvm::orc::LLJITBuilder().create();
+ auto J = llvm::orc::LLJITBuilder()
+ .setEnableDebuggerSupport(true)
+ .create();
if (!J) {
// The platform does not support JITs.
// Using llvm::consumeError will require typeinfo for ErrorInfoBase, we