[llvm-commits] CVS: llvm/lib/ExecutionEngine/ExecutionEngine.cpp
Reid Spencer
reid at x10sys.com
Sat Mar 3 10:19:38 PST 2007
Changes in directory llvm/lib/ExecutionEngine:
ExecutionEngine.cpp updated: 1.109 -> 1.110
---
Log message:
Deal with error handling better.
---
Diffs of the changes: (+5 -3)
ExecutionEngine.cpp | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
Index: llvm/lib/ExecutionEngine/ExecutionEngine.cpp
diff -u llvm/lib/ExecutionEngine/ExecutionEngine.cpp:1.109 llvm/lib/ExecutionEngine/ExecutionEngine.cpp:1.110
--- llvm/lib/ExecutionEngine/ExecutionEngine.cpp:1.109 Sat Mar 3 02:36:29 2007
+++ llvm/lib/ExecutionEngine/ExecutionEngine.cpp Sat Mar 3 12:19:18 2007
@@ -45,6 +45,7 @@
}
ExecutionEngine::~ExecutionEngine() {
+ clearAllGlobalMappings();
for (unsigned i = 0, e = Modules.size(); i != e; ++i)
delete Modules[i];
}
@@ -252,16 +253,17 @@
/// NULL is returned.
///
ExecutionEngine *ExecutionEngine::create(ModuleProvider *MP,
- bool ForceInterpreter) {
+ bool ForceInterpreter,
+ std::string *ErrorStr) {
ExecutionEngine *EE = 0;
// Unless the interpreter was explicitly selected, try making a JIT.
if (!ForceInterpreter && JITCtor)
- EE = JITCtor(MP);
+ EE = JITCtor(MP, ErrorStr);
// If we can't make a JIT, make an interpreter instead.
if (EE == 0 && InterpCtor)
- EE = InterpCtor(MP);
+ EE = InterpCtor(MP, ErrorStr);
if (EE) {
// Make sure we can resolve symbols in the program as well. The zero arg
More information about the llvm-commits
mailing list