[PATCH] Refactor: Simplify boolean conditional return statements in tools/yaml2obj
Simon Atanasyan
simon at atanasyan.com
Mon May 25 21:54:05 PDT 2015
================
Comment at: tools/yaml2obj/yaml2coff.cpp:117
@@ -116,5 +116,3 @@
return false;
- if (!parseSymbols())
- return false;
- return true;
+ return parseSymbols();
}
----------------
Might be the following code even better?
```
return parseSections() && parseSymbols();
```
http://reviews.llvm.org/D10007
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
More information about the llvm-commits
mailing list