summaryrefslogtreecommitdiffstats
path: root/lld/ELF/Memory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lld/ELF/Memory.cpp')
-rw-r--r--lld/ELF/Memory.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/lld/ELF/Memory.cpp b/lld/ELF/Memory.cpp
new file mode 100644
index 00000000000..6ea0ee89643
--- /dev/null
+++ b/lld/ELF/Memory.cpp
@@ -0,0 +1,15 @@
+//===- Memory.cpp -----------------------------------------------*- C++ -*-===//
+//
+// The LLVM Linker
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+#include "Memory.h"
+
+llvm::BumpPtrAllocator lld::elf::BAlloc;
+llvm::StringSaver lld::elf::Saver{BAlloc};
+
+void lld::elf::freeArena() { BAlloc.Reset(); }
OpenPOWER on IntegriCloud