From 51ebcaaf258ee206c6e7179a6803ef4e13e32a2e Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Fri, 24 Nov 2017 14:55:41 +0000 Subject: Make helpers static. NFC. llvm-svn: 318953 --- llvm/lib/Support/FileOutputBuffer.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'llvm/lib/Support/FileOutputBuffer.cpp') 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> createInMemoryBuffer(StringRef Path, size_t Size, unsigned Mode) { -- cgit v1.2.3