forked from OSchip/llvm-project
make error message reflect default search function name
llvm-svn: 48021
This commit is contained in:
parent
780b3ca64b
commit
3906c6aea3
|
@ -81,9 +81,8 @@ int main(int argc, char **argv) {
|
|||
M.get()->getNamedGlobal(ExtractGlobal) : 0;
|
||||
|
||||
// Figure out which function we should extract
|
||||
Function *F = ExtractFunc.size() ?
|
||||
M.get()->getFunction(ExtractFunc) :
|
||||
M.get()->getFunction("main");
|
||||
if (!ExtractFunc.size()) ExtractFunc = "main";
|
||||
Function *F = M.get()->getFunction(ExtractFunc);
|
||||
|
||||
if (F == 0 && G == 0) {
|
||||
cerr << argv[0] << ": program doesn't contain function named '"
|
||||
|
|
Loading…
Reference in New Issue