Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LLVM bpEVL
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lorenzo Albano
LLVM bpEVL
Commits
3f0ffd31
Commit
3f0ffd31
authored
18 years ago
by
Chris Lattner
Browse files
Options
Downloads
Patches
Plain Diff
add a new (hidden) -disable-core-files option
llvm-svn: 30318
parent
2f107cfc
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
llvm/tools/lli/lli.cpp
+9
-0
9 additions, 0 deletions
llvm/tools/lli/lli.cpp
with
9 additions
and
0 deletions
llvm/tools/lli/lli.cpp
+
9
−
0
View file @
3f0ffd31
...
@@ -23,6 +23,7 @@
...
@@ -23,6 +23,7 @@
#include
"llvm/ExecutionEngine/GenericValue.h"
#include
"llvm/ExecutionEngine/GenericValue.h"
#include
"llvm/Support/CommandLine.h"
#include
"llvm/Support/CommandLine.h"
#include
"llvm/Support/PluginLoader.h"
#include
"llvm/Support/PluginLoader.h"
#include
"llvm/System/Process.h"
#include
"llvm/System/Signals.h"
#include
"llvm/System/Signals.h"
#include
<iostream>
#include
<iostream>
...
@@ -45,6 +46,10 @@ namespace {
...
@@ -45,6 +46,10 @@ namespace {
FakeArgv0
(
"fake-argv0"
,
FakeArgv0
(
"fake-argv0"
,
cl
::
desc
(
"Override the 'argv[0]' value passed into the executing"
cl
::
desc
(
"Override the 'argv[0]' value passed into the executing"
" program"
),
cl
::
value_desc
(
"executable"
));
" 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 @@ int main(int argc, char **argv, char * const *envp) {
...
@@ -56,6 +61,10 @@ int main(int argc, char **argv, char * const *envp) {
" llvm interpreter & dynamic compiler
\n
"
);
" llvm interpreter & dynamic compiler
\n
"
);
sys
::
PrintStackTraceOnErrorSignal
();
sys
::
PrintStackTraceOnErrorSignal
();
// If the user doesn't want core files, disable them.
if
(
DisableCoreFiles
)
sys
::
Process
::
PreventCoreFiles
();
// Load the bytecode...
// Load the bytecode...
std
::
string
ErrorMsg
;
std
::
string
ErrorMsg
;
ModuleProvider
*
MP
=
0
;
ModuleProvider
*
MP
=
0
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment