aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Interpreter/Interpreter.cpp
diff options
context:
space:
mode:
authorVassil Vassilev <v.g.vassilev@gmail.com>2021-09-03 13:17:52 +0000
committerVassil Vassilev <v.g.vassilev@gmail.com>2021-09-03 13:18:09 +0000
commit8859640461149065ece1fbcdfed78f17f04a4926 (patch)
tree6277c06f4ea2d672f4cb45afda214d79a738d3ec /clang/lib/Interpreter/Interpreter.cpp
parentda47c2719b1094a29427917ddb157c9c716e876d (diff)
downloadllvm-8859640461149065ece1fbcdfed78f17f04a4926.zip
llvm-8859640461149065ece1fbcdfed78f17f04a4926.tar.gz
llvm-8859640461149065ece1fbcdfed78f17f04a4926.tar.bz2
Revert "Reland "[clang-repl] Re-implement clang-interpreter as a test case.""
This reverts commit 6fe2beba7d2a41964af658c8c59dd172683ef739 which fails on clang-hexagon-elf
Diffstat (limited to 'clang/lib/Interpreter/Interpreter.cpp')
-rw-r--r--clang/lib/Interpreter/Interpreter.cpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/clang/lib/Interpreter/Interpreter.cpp b/clang/lib/Interpreter/Interpreter.cpp
index 69224dd..3e8d388 100644
--- a/clang/lib/Interpreter/Interpreter.cpp
+++ b/clang/lib/Interpreter/Interpreter.cpp
@@ -35,7 +35,8 @@
using namespace clang;
// FIXME: Figure out how to unify with namespace init_convenience from
-// tools/clang-import-test/clang-import-test.cpp
+// tools/clang-import-test/clang-import-test.cpp and
+// examples/clang-interpreter/main.cpp
namespace {
/// Retrieves the clang CC1 specific flags out of the compilation's jobs.
/// \returns NULL on error.
@@ -217,13 +218,3 @@ llvm::Error Interpreter::Execute(PartialTranslationUnit &T) {
return llvm::Error::success();
}
-
-llvm::Expected<llvm::JITTargetAddress>
-Interpreter::getSymbolAddress(llvm::StringRef UnmangledName) const {
- if (!IncrExecutor)
- return llvm::make_error<llvm::StringError>("Operation failed. "
- "No execution engine",
- std::error_code());
-
- return IncrExecutor->getSymbolAddress(UnmangledName);
-}