projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
There is no EndPtr anymore - reinterpret the original comment in terms
[oota-llvm.git]
/
tools
/
lli
/
lli.cpp
diff --git
a/tools/lli/lli.cpp
b/tools/lli/lli.cpp
index 4c377805e6a3662f3b7111caf198921252353eba..adc6e90eb99a9c02fd492da28c3be3a463f2990d 100644
(file)
--- a/
tools/lli/lli.cpp
+++ b/
tools/lli/lli.cpp
@@
-33,6
+33,14
@@
#include "llvm/System/Signals.h"
#include "llvm/Target/TargetSelect.h"
#include <cerrno>
#include "llvm/System/Signals.h"
#include "llvm/Target/TargetSelect.h"
#include <cerrno>
+
+#ifdef __CYGWIN__
+#include <cygwin/version.h>
+#if defined(CYGWIN_VERSION_DLL_MAJOR) && CYGWIN_VERSION_DLL_MAJOR<1007
+#define DO_NOTHING_ATEXIT 1
+#endif
+#endif
+
using namespace llvm;
namespace {
using namespace llvm;
namespace {
@@
-99,8
+107,11
@@
namespace {
static ExecutionEngine *EE = 0;
static void do_shutdown() {
static ExecutionEngine *EE = 0;
static void do_shutdown() {
+ // Cygwin-1.5 invokes DLL's dtors before atexit handler.
+#ifndef DO_NOTHING_ATEXIT
delete EE;
llvm_shutdown();
delete EE;
llvm_shutdown();
+#endif
}
//===----------------------------------------------------------------------===//
}
//===----------------------------------------------------------------------===//