mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
Fix problem where lli < foo.bc would have argc = 0
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1393 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
de51dd890f
commit
aca8e90cd9
@ -52,6 +52,13 @@ int main(int argc, char** argv) {
|
||||
if (ProfileMode) I.enableProfiling();
|
||||
if (TraceMode) I.enableTracing();
|
||||
|
||||
// Ensure that there is at least one argument... the name of the program.
|
||||
// This is only unavailable if the program was read from stdin, instead of a
|
||||
// file.
|
||||
//
|
||||
if (InputArgv.empty())
|
||||
InputArgv.push_back("from-stdin-prog");
|
||||
|
||||
// Start interpreter into the main function...
|
||||
//
|
||||
if (!I.callMainMethod(MainFunction, InputArgv) && !DebugMode) {
|
||||
|
Loading…
Reference in New Issue
Block a user