Enhancements to pass argc & argv to main if required

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@909 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2001-10-18 21:55:32 +00:00
parent b7e711838f
commit f8f2afb8cc
5 changed files with 75 additions and 3 deletions

View File

@@ -49,7 +49,7 @@ int main(int argc, char** argv) {
// Start interpreter into the main function...
//
if (!I.callMethod(MainFunction) && !DebugMode) {
if (!I.callMainMethod(MainFunction, InputFilename) && !DebugMode) {
// If not in debug mode and if the call succeeded, run the code now...
I.run();
}