Make helpers static. NFC.
llvm-svn: 318953
diff --git a/llvm/lib/Support/FileOutputBuffer.cpp b/llvm/lib/Support/FileOutputBuffer.cpp
index 1b19603..c4ff563 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 @@
OwningMemoryBlock Buffer;
unsigned Mode;
};
+} // namespace
static Expected<std::unique_ptr<InMemoryBuffer>>
createInMemoryBuffer(StringRef Path, size_t Size, unsigned Mode) {