mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-14 07:09:08 +00:00
only extract main if the user didn't specify anything to extract
llvm-svn: 48023
This commit is contained in:
parent
a96cf89c33
commit
f5496cc1b6
@ -81,7 +81,7 @@ int main(int argc, char **argv) {
|
||||
M.get()->getNamedGlobal(ExtractGlobal) : 0;
|
||||
|
||||
// Figure out which function we should extract
|
||||
if (!ExtractFunc.size()) ExtractFunc = "main";
|
||||
if (!ExtractFunc.size() && !ExtractGlobal.size()) ExtractFunc = "main";
|
||||
Function *F = M.get()->getFunction(ExtractFunc);
|
||||
|
||||
if (F == 0 && G == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user