summaryrefslogtreecommitdiffstats
path: root/lld/lib/Support/Memory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lld/lib/Support/Memory.cpp')
-rw-r--r--lld/lib/Support/Memory.cpp27
1 files changed, 0 insertions, 27 deletions
diff --git a/lld/lib/Support/Memory.cpp b/lld/lib/Support/Memory.cpp
deleted file mode 100644
index 9bdcdcc8fdb..00000000000
--- a/lld/lib/Support/Memory.cpp
+++ /dev/null
@@ -1,27 +0,0 @@
-//===- Memory.cpp -----------------------------------------------*- C++ -*-===//
-//
-// The LLVM Linker
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-#include "lld/Support/Memory.h"
-
-using namespace llvm;
-
-namespace lld {
-BumpPtrAllocator BAlloc;
-StringSaver Saver{BAlloc};
-
-SpecificAllocBase::SpecificAllocBase() { Instances.push_back(this); }
-
-std::vector<SpecificAllocBase *> SpecificAllocBase::Instances;
-
-void freeArena() {
- for (SpecificAllocBase *Alloc : SpecificAllocBase::Instances)
- Alloc->reset();
- BAlloc.Reset();
-}
-}
OpenPOWER on IntegriCloud