llvm.org GIT mirror llvm / 51747a7
Use .empty() instead of .size(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69599 91177308-0d34-0410-b5e6-96231b3b80d8 Dan Gohman 10 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
8080 }
8181
8282 // Figure out which function we should extract
83 GlobalVariable *G = ExtractGlobal.size() ?
83 GlobalVariable *G = !ExtractGlobal.empty() ?
8484 M.get()->getNamedGlobal(ExtractGlobal) : 0;
8585
8686 // Figure out which function we should extract
87 if (!ExtractFunc.size() && !ExtractGlobal.size()) ExtractFunc = "main";
87 if (ExtractFunc.empty() && ExtractGlobal.empty()) ExtractFunc = "main";
8888 Function *F = M.get()->getFunction(ExtractFunc);
8989
9090 if (F == 0 && G == 0) {