aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Interpreter/InterpreterTest.cpp
diff options
context:
space:
mode:
authorAnubhab Ghosh <anubhabghosh.me@gmail.com>2023-05-20 14:40:04 +0530
committerAnubhab Ghosh <anubhabghosh.me@gmail.com>2023-05-20 14:40:04 +0530
commit0929f5b90350aa2f9175d7e1094b1750535c0e44 (patch)
tree76680b1fbff8aeec15af29b04714992727c03b3f /clang/unittests/Interpreter/InterpreterTest.cpp
parent80e7eed6a610ab3c7289e6f9b7ec006bc7d7ae31 (diff)
downloadllvm-0929f5b90350aa2f9175d7e1094b1750535c0e44.zip
llvm-0929f5b90350aa2f9175d7e1094b1750535c0e44.tar.gz
llvm-0929f5b90350aa2f9175d7e1094b1750535c0e44.tar.bz2
Revert "[clang-repl][CUDA] Initial interactive CUDA support for clang-repl"
This reverts commit 80e7eed6a610ab3c7289e6f9b7ec006bc7d7ae31.
Diffstat (limited to 'clang/unittests/Interpreter/InterpreterTest.cpp')
-rw-r--r--clang/unittests/Interpreter/InterpreterTest.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/unittests/Interpreter/InterpreterTest.cpp b/clang/unittests/Interpreter/InterpreterTest.cpp
index 5e03eea..d555911 100644
--- a/clang/unittests/Interpreter/InterpreterTest.cpp
+++ b/clang/unittests/Interpreter/InterpreterTest.cpp
@@ -40,9 +40,7 @@ createInterpreter(const Args &ExtraArgs = {},
DiagnosticConsumer *Client = nullptr) {
Args ClangArgs = {"-Xclang", "-emit-llvm-only"};
ClangArgs.insert(ClangArgs.end(), ExtraArgs.begin(), ExtraArgs.end());
- auto CB = clang::IncrementalCompilerBuilder();
- CB.SetCompilerArgs(ClangArgs);
- auto CI = cantFail(CB.CreateCpp());
+ auto CI = cantFail(clang::IncrementalCompilerBuilder::create(ClangArgs));
if (Client)
CI->getDiagnostics().setClient(Client, /*ShouldOwnClient=*/false);
return cantFail(clang::Interpreter::create(std::move(CI)));