summaryrefslogtreecommitdiff
path: root/tools/lli
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-10-18 21:55:32 +0000
committerChris Lattner <sabre@nondot.org>2001-10-18 21:55:32 +0000
commitf8f2afb8cc5f080b291faad678e0a256ea44d15f (patch)
tree379ee6deb37bce643073e445144af18aea82d9ed /tools/lli
parentb7e711838f8d6445f1ad7fa032515ad472060c84 (diff)
downloadllvm-f8f2afb8cc5f080b291faad678e0a256ea44d15f.tar.gz
llvm-f8f2afb8cc5f080b291faad678e0a256ea44d15f.tar.bz2
llvm-f8f2afb8cc5f080b291faad678e0a256ea44d15f.tar.xz
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
Diffstat (limited to 'tools/lli')
-rw-r--r--tools/lli/lli.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lli/lli.cpp b/tools/lli/lli.cpp
index 9bb514e54e..818931c5f7 100644
--- a/tools/lli/lli.cpp
+++ b/tools/lli/lli.cpp
@@ -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();
}