mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-26 10:29:36 +00:00
Use .empty() instead of .size().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69599 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ba0941fbe0
commit
51747a7e51
@ -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