mirror of
https://github.com/RPCS3/llvm.git
synced 2025-04-04 06:12:18 +00:00
only extract main if the user didn't specify anything to extract
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48023 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
22a8a734e9
commit
c77e4d1569
@ -81,7 +81,7 @@ int main(int argc, char **argv) {
|
|||||||
M.get()->getNamedGlobal(ExtractGlobal) : 0;
|
M.get()->getNamedGlobal(ExtractGlobal) : 0;
|
||||||
|
|
||||||
// Figure out which function we should extract
|
// 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);
|
Function *F = M.get()->getFunction(ExtractFunc);
|
||||||
|
|
||||||
if (F == 0 && G == 0) {
|
if (F == 0 && G == 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user