summaryrefslogtreecommitdiffstats
path: root/clang/examples/clang-interpreter/Invoke.h
diff options
context:
space:
mode:
authorStephane Sezer <sas@cd80.net>2018-05-25 20:23:42 +0000
committerStephane Sezer <sas@cd80.net>2018-05-25 20:23:42 +0000
commitb6f6192db109fd549ac7d5211fd8b692291bb989 (patch)
tree8dc440618fb8ac2e3f3d4c47991999160ee6f3ba /clang/examples/clang-interpreter/Invoke.h
parent0baba9e7287d5afc5bf163d954079bf2c4741fb3 (diff)
downloadbcm5719-llvm-b6f6192db109fd549ac7d5211fd8b692291bb989.tar.gz
bcm5719-llvm-b6f6192db109fd549ac7d5211fd8b692291bb989.zip
Convert clang-interpreter to ORC JIT API
Summary: This mostly re-uses code from the KaleidoscopeJIT example. Reviewers: ddunbar, lhames Reviewed By: lhames Subscribers: mgrang, alexshap, mgorny, xiaobai, cfe-commits Differential Revision: https://reviews.llvm.org/D45897 llvm-svn: 333302
Diffstat (limited to 'clang/examples/clang-interpreter/Invoke.h')
-rw-r--r--clang/examples/clang-interpreter/Invoke.h34
1 files changed, 0 insertions, 34 deletions
diff --git a/clang/examples/clang-interpreter/Invoke.h b/clang/examples/clang-interpreter/Invoke.h
deleted file mode 100644
index 33942534fd0..00000000000
--- a/clang/examples/clang-interpreter/Invoke.h
+++ /dev/null
@@ -1,34 +0,0 @@
-//===-- examples/clang-interpreter/Invoke.h - Clang C Interpreter Example -===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-#ifndef CLANG_EXAMPLE_INTERPRETER_INVOKE_H
-#define CLANG_EXAMPLE_INTERPRETER_INVOKE_H
-
-namespace llvm {
- class ExecutionEngine;
- class Function;
-}
-
-#include <string>
-#include <vector>
-
-namespace interpreter {
-
-typedef std::vector<std::string> InvokeArgs;
-
-typedef int (*Invoker)(llvm::ExecutionEngine *EE, llvm::Function *EntryFn,
- const InvokeArgs &Args, char *const *EnvP);
-
-int TryIt(llvm::ExecutionEngine *EE, llvm::Function *EntryFn,
- const InvokeArgs &Args, char *const *EnvP,
- Invoker Invoke);
-
-} // interpreter
-
-#endif // CLANG_EXAMPLE_INTERPRETER_INVOKE_H
OpenPOWER on IntegriCloud