mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-21 04:41:34 +00:00
Use .empty() instead of .size().
llvm-svn: 69599
This commit is contained in:
parent
88feed3657
commit
6f18ecd37b
@ -81,11 +81,11 @@ int main(int argc, char **argv) {
|
||||
}
|
||||
|
||||
// Figure out which function we should extract
|
||||
GlobalVariable *G = ExtractGlobal.size() ?
|
||||
GlobalVariable *G = !ExtractGlobal.empty() ?
|
||||
M.get()->getNamedGlobal(ExtractGlobal) : 0;
|
||||
|
||||
// Figure out which function we should extract
|
||||
if (!ExtractFunc.size() && !ExtractGlobal.size()) ExtractFunc = "main";
|
||||
if (ExtractFunc.empty() && ExtractGlobal.empty()) ExtractFunc = "main";
|
||||
Function *F = M.get()->getFunction(ExtractFunc);
|
||||
|
||||
if (F == 0 && G == 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user