projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Nuke the old JIT.
[oota-llvm.git]
/
examples
/
HowToUseJIT
/
HowToUseJIT.cpp
diff --git
a/examples/HowToUseJIT/HowToUseJIT.cpp
b/examples/HowToUseJIT/HowToUseJIT.cpp
index 7125a1561045b2f025468bcd4d45a6d7d73bc9e8..906b066ca45c34fd14aa147df1985da3082ba8fe 100644
(file)
--- a/
examples/HowToUseJIT/HowToUseJIT.cpp
+++ b/
examples/HowToUseJIT/HowToUseJIT.cpp
@@
-36,7
+36,6
@@
#include "llvm/ExecutionEngine/GenericValue.h"
#include "llvm/ExecutionEngine/Interpreter.h"
#include "llvm/ExecutionEngine/GenericValue.h"
#include "llvm/ExecutionEngine/Interpreter.h"
-#include "llvm/ExecutionEngine/JIT.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/DerivedTypes.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/DerivedTypes.h"
#include "llvm/IR/IRBuilder.h"
@@
-126,7
+125,6
@@
int main() {
// Import result of execution:
outs() << "Result: " << gv.IntVal << "\n";
// Import result of execution:
outs() << "Result: " << gv.IntVal << "\n";
- EE->freeMachineCodeForFunction(FooF);
delete EE;
llvm_shutdown();
return 0;
delete EE;
llvm_shutdown();
return 0;