aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Interpreter/InterpreterTest.cpp
diff options
context:
space:
mode:
authorVassil Vassilev <v.g.vassilev@gmail.com>2023-08-29 19:33:48 +0000
committerVassil Vassilev <v.g.vassilev@gmail.com>2023-08-29 19:34:20 +0000
commite6cd950d1b4a07f8c339b6f55374e4aa229e42f7 (patch)
tree1adf48330eacb93d41165c895374e19c96ce6cef /clang/unittests/Interpreter/InterpreterTest.cpp
parent6276927bf3f6ce4a9ef0b9941b2c6450ae4cd1eb (diff)
downloadllvm-e6cd950d1b4a07f8c339b6f55374e4aa229e42f7.zip
llvm-e6cd950d1b4a07f8c339b6f55374e4aa229e42f7.tar.gz
llvm-e6cd950d1b4a07f8c339b6f55374e4aa229e42f7.tar.bz2
Revert "[clang-repl] Adapt to the recent dylib-related changes in ORC."
This reverts commit 196d8569d46dc5200c44e70cdf839b042148b988 while investigating bot failure: https://lab.llvm.org/buildbot/#/builders/216/builds/26444
Diffstat (limited to 'clang/unittests/Interpreter/InterpreterTest.cpp')
-rw-r--r--clang/unittests/Interpreter/InterpreterTest.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/clang/unittests/Interpreter/InterpreterTest.cpp b/clang/unittests/Interpreter/InterpreterTest.cpp
index 0f546d2..1800bff 100644
--- a/clang/unittests/Interpreter/InterpreterTest.cpp
+++ b/clang/unittests/Interpreter/InterpreterTest.cpp
@@ -234,16 +234,10 @@ TEST(IncrementalProcessing, FindMangledNameSymbol) {
}
std::string MangledName = MangleName(FD);
- auto Addr = Interp->getSymbolAddress(MangledName);
- EXPECT_FALSE(!Addr);
- EXPECT_NE(0U, Addr->getValue());
+ auto Addr = cantFail(Interp->getSymbolAddress(MangledName));
+ EXPECT_NE(0U, Addr.getValue());
GlobalDecl GD(FD);
- EXPECT_EQ(*Addr, cantFail(Interp->getSymbolAddress(GD)));
- cantFail(
- Interp->ParseAndExecute("extern \"C\" int printf(const char*,...);"));
- Addr = Interp->getSymbolAddress("printf");
- EXPECT_FALSE(!Addr);
- EXPECT_EQ((unsigned long long)&printf, Addr->getValue());
+ EXPECT_EQ(Addr, cantFail(Interp->getSymbolAddress(GD)));
}
static void *AllocateObject(TypeDecl *TD, Interpreter &Interp) {