Add a wrapper for open.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 16 Jul 2013 19:44:17 +0000 (19:44 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 16 Jul 2013 19:44:17 +0000 (19:44 +0000)
commitc1b49b56d4132efa2e06deb8f23508d0de4c8800
treeac30ab59f60f12465f5b7ffd0823b08a711770e8
parent1a9c39e52a2b1ce474dec773e77d12ae4c335a71
Add a wrapper for open.

This centralizes the handling of O_BINARY and opens the way for hiding more
differences (like how open behaves with directories).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186447 91177308-0d34-0410-b5e6-96231b3b80d8
27 files changed:
include/llvm/Support/FileSystem.h
include/llvm/Support/ToolOutputFile.h
include/llvm/Support/raw_ostream.h
lib/Bitcode/Writer/BitWriter.cpp
lib/CodeGen/MachineVerifier.cpp
lib/MC/MCParser/DarwinAsmParser.cpp
lib/Support/DataStream.cpp
lib/Support/MemoryBuffer.cpp
lib/Support/Path.cpp
lib/Support/Timer.cpp
lib/Support/ToolOutputFile.cpp
lib/Support/raw_ostream.cpp
lib/Target/TargetMachineC.cpp
lib/Transforms/Instrumentation/GCOVProfiling.cpp
tools/bugpoint/OptimizerDriver.cpp
tools/llc/llc.cpp
tools/llvm-ar/llvm-ar.cpp
tools/llvm-as/llvm-as.cpp
tools/llvm-dis/llvm-dis.cpp
tools/llvm-extract/llvm-extract.cpp
tools/llvm-link/llvm-link.cpp
tools/llvm-mc/llvm-mc.cpp
tools/llvm-stress/llvm-stress.cpp
tools/lto/LTOCodeGenerator.cpp
tools/opt/opt.cpp
unittests/Support/Path.cpp
utils/FileUpdate/FileUpdate.cpp