summaryrefslogtreecommitdiffstats
path: root/clang/examples/clang-interpreter/Invoke.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/examples/clang-interpreter/Invoke.cpp')
-rw-r--r--clang/examples/clang-interpreter/Invoke.cpp31
1 files changed, 0 insertions, 31 deletions
diff --git a/clang/examples/clang-interpreter/Invoke.cpp b/clang/examples/clang-interpreter/Invoke.cpp
deleted file mode 100644
index 90afa0146b1..00000000000
--- a/clang/examples/clang-interpreter/Invoke.cpp
+++ /dev/null
@@ -1,31 +0,0 @@
-//==-- examples/clang-interpreter/Invoke.cpp - 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.
-//
-//===----------------------------------------------------------------------===//
-
-#include "Invoke.h"
-
-#include <iostream>
-#include <stdexcept>
-
-namespace interpreter {
-
-int TryIt(llvm::ExecutionEngine *EE, llvm::Function *EntryFn,
- const std::vector<std::string> &Args, char *const *EnvP,
- Invoker Invoke) {
- int Res = -1;
- try {
- Res = Invoke(EE, EntryFn, Args, EnvP);
- } catch (const std::exception &E) {
- std::cout << "Caught '" << E.what() << "'\n";
- } catch (...) {
- std::cout << "Unknown exception\n";
- }
- return Res;
-}
-
-}
OpenPOWER on IntegriCloud