Make helpers static. NFC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@318953 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Benjamin Kramer
2017-11-24 14:55:41 +00:00
parent d951789cbf
commit 9a31efbf5b
4 changed files with 14 additions and 12 deletions
+2
View File
@@ -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) {