aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Interpreter/Interpreter.cpp
diff options
context:
space:
mode:
authorFred Fu <moonsolo@gmail.com>2023-11-23 12:56:35 -0500
committerGitHub <noreply@github.com>2023-11-23 19:56:35 +0200
commit002d471a4a3cd8b429e4ca7c84fd54a642e50e4c (patch)
tree3deb317c0d98e5a9ef76d1e53abc0ada3a369c71 /clang/lib/Interpreter/Interpreter.cpp
parentb1fba568f6d4d824554fa22f43ec0f689a265664 (diff)
downloadllvm-002d471a4a3cd8b429e4ca7c84fd54a642e50e4c.zip
llvm-002d471a4a3cd8b429e4ca7c84fd54a642e50e4c.tar.gz
llvm-002d471a4a3cd8b429e4ca7c84fd54a642e50e4c.tar.bz2
[ClangRepl] Type Directed Code Completion (#67349)
Differential Revision: https://reviews.llvm.org/D159128
Diffstat (limited to 'clang/lib/Interpreter/Interpreter.cpp')
-rw-r--r--clang/lib/Interpreter/Interpreter.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/Interpreter/Interpreter.cpp b/clang/lib/Interpreter/Interpreter.cpp
index 7968c62..c9fcef5 100644
--- a/clang/lib/Interpreter/Interpreter.cpp
+++ b/clang/lib/Interpreter/Interpreter.cpp
@@ -319,6 +319,10 @@ const CompilerInstance *Interpreter::getCompilerInstance() const {
return IncrParser->getCI();
}
+CompilerInstance *Interpreter::getCompilerInstance() {
+ return IncrParser->getCI();
+}
+
llvm::Expected<llvm::orc::LLJIT &> Interpreter::getExecutionEngine() {
if (!IncrExecutor) {
if (auto Err = CreateExecutor())