diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2017-11-24 14:55:41 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2017-11-24 14:55:41 +0000 |
commit | 51ebcaaf258ee206c6e7179a6803ef4e13e32a2e (patch) | |
tree | af8e8561b1d1c720d55fd48ed46f9572b68f094e /llvm/lib/Support/FileOutputBuffer.cpp | |
parent | 72bac8f33716a8f38fab7acca4145d9c989d14d0 (diff) | |
download | bcm5719-llvm-51ebcaaf258ee206c6e7179a6803ef4e13e32a2e.tar.gz bcm5719-llvm-51ebcaaf258ee206c6e7179a6803ef4e13e32a2e.zip |
Make helpers static. NFC.
llvm-svn: 318953
Diffstat (limited to 'llvm/lib/Support/FileOutputBuffer.cpp')
-rw-r--r-- | llvm/lib/Support/FileOutputBuffer.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Support/FileOutputBuffer.cpp b/llvm/lib/Support/FileOutputBuffer.cpp index 1b1960395e2..c4ff563e5f4 100644 --- a/llvm/lib/Support/FileOutputBuffer.cpp +++ b/llvm/lib/Support/FileOutputBuffer.cpp @@ -28,6 +28,7 @@ using namespace llvm; using namespace llvm::sys; +namespace { // A FileOutputBuffer which creates a temporary file in the same directory // as the final output file. The final output file is atomically replaced // with the temporary file on commit(). @@ -94,6 +95,7 @@ private: OwningMemoryBlock Buffer; unsigned Mode; }; +} // namespace static Expected<std::unique_ptr<InMemoryBuffer>> createInMemoryBuffer(StringRef Path, size_t Size, unsigned Mode) { |