]> granicus.if.org Git - clang/commit
Cut down the number of open/close system calls for output files.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Thu, 28 Jul 2011 00:45:10 +0000 (00:45 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Thu, 28 Jul 2011 00:45:10 +0000 (00:45 +0000)
commit7e90985df09855dc309ed888a5b16a0ae684f8e3
treec9e04d8022164aabccf48bef6b2e5263485f0b59
parentd58a0a55e64a7c410a80e9d6dcd899e61e99cc4d
Cut down the number of open/close system calls for output files.

For PCH files, have only one open/close for temporary + rename to be safe from race conditions.
For all other output files open/close the output file directly.

Depends on llvm r136310. rdar://9082880 & http://llvm.org/PR9374.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@136315 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Frontend/CompilerInstance.h
lib/Frontend/ASTUnit.cpp
lib/Frontend/CompilerInstance.cpp
lib/Frontend/FrontendActions.cpp