diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-02-05 21:19:13 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-02-05 21:19:13 +0000 |
commit | 688b0490e22eb67623f5aaa24406209be74efcb2 (patch) | |
tree | 69eb17e5f7e3136a7b336ed6c5d0a2ed5692a44d /tools/lli/lli.cpp | |
parent | cdedc3b336ff7552e439723fdb96dda68b1dbbdb (diff) |
For PR411:
Adjust to changes in Module interface:
getMainFunction() -> getFunction("main")
getNamedFunction(X) -> getFunction(X)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33922 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/lli/lli.cpp')
-rw-r--r-- | tools/lli/lli.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lli/lli.cpp b/tools/lli/lli.cpp index 9f1ecc2978..c7b0765d52 100644 --- a/tools/lli/lli.cpp +++ b/tools/lli/lli.cpp @@ -103,7 +103,7 @@ int main(int argc, char **argv, char * const *envp) { // using the contents of Args to determine argc & argv, and the contents of // EnvVars to determine envp. // - Function *Fn = MP->getModule()->getMainFunction(); + Function *Fn = MP->getModule()->getFunction("main"); if (!Fn) { std::cerr << "'main' function not found in module.\n"; return -1; |