summaryrefslogtreecommitdiffstats
path: root/llvm/tools
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
commitd299dbac0ea1013403b6c6e497079f62756bc5c0 (patch)
tree2dd204d43e2e85d5e29a59ba36525fd9bc802f9f /llvm/tools
parentcbe05f258efccd9b7246f536449e4e2fb1040c6a (diff)
downloadbcm5719-llvm-d299dbac0ea1013403b6c6e497079f62756bc5c0.tar.gz
bcm5719-llvm-d299dbac0ea1013403b6c6e497079f62756bc5c0.zip
Enhancements to pass argc & argv to main if required
llvm-svn: 909
Diffstat (limited to 'llvm/tools')
-rw-r--r--llvm/tools/lli/lli.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/lli/lli.cpp b/llvm/tools/lli/lli.cpp
index 9bb514e54e7..818931c5f79 100644
--- a/llvm/tools/lli/lli.cpp
+++ b/llvm/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();
}
OpenPOWER on IntegriCloud