[llvm-commits] CVS: llvm/tools/lli/lli.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Sep 13 23:17:24 PDT 2006
Changes in directory llvm/tools/lli:
lli.cpp updated: 1.59 -> 1.60
---
Log message:
add a new (hidden) -disable-core-files option
---
Diffs of the changes: (+9 -0)
lli.cpp | 9 +++++++++
1 files changed, 9 insertions(+)
Index: llvm/tools/lli/lli.cpp
diff -u llvm/tools/lli/lli.cpp:1.59 llvm/tools/lli/lli.cpp:1.60
--- llvm/tools/lli/lli.cpp:1.59 Fri Aug 25 12:43:11 2006
+++ llvm/tools/lli/lli.cpp Thu Sep 14 01:17:09 2006
@@ -23,6 +23,7 @@
#include "llvm/ExecutionEngine/GenericValue.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/PluginLoader.h"
+#include "llvm/System/Process.h"
#include "llvm/System/Signals.h"
#include <iostream>
@@ -45,6 +46,10 @@
FakeArgv0("fake-argv0",
cl::desc("Override the 'argv[0]' value passed into the executing"
" program"), cl::value_desc("executable"));
+
+ cl::opt<bool>
+ DisableCoreFiles("disable-core-files", cl::Hidden,
+ cl::desc("Disable emission of core files if possible"));
}
//===----------------------------------------------------------------------===//
@@ -56,6 +61,10 @@
" llvm interpreter & dynamic compiler\n");
sys::PrintStackTraceOnErrorSignal();
+ // If the user doesn't want core files, disable them.
+ if (DisableCoreFiles)
+ sys::Process::PreventCoreFiles();
+
// Load the bytecode...
std::string ErrorMsg;
ModuleProvider *MP = 0;
More information about the llvm-commits
mailing list