diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-27 18:26:26 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-27 18:26:26 +0000 |
| commit | 375a4f519eb85d37e702c90498ef9816aeda4c3e (patch) | |
| tree | f13118b9e3fa9865cf93035d07d830037ec294c2 /lib/CodeGen/CodeGenFunction.cpp | |
| parent | cbed3bfe79bbd16ced68078c7385bd21151f44cd (diff) | |
| download | clang-375a4f519eb85d37e702c90498ef9816aeda4c3e.tar.gz clang-375a4f519eb85d37e702c90498ef9816aeda4c3e.tar.bz2 clang-375a4f519eb85d37e702c90498ef9816aeda4c3e.tar.xz | |
Small improvements to createOutputFile.
* Use a single stat to find out if the file exists and if it is a regular file.
* Use early returns when possible.
* Add comments explaining why we have each check.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185091 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions
