summaryrefslogtreecommitdiffstats
path: root/lld/lib/Support
diff options
context:
space:
mode:
Diffstat (limited to 'lld/lib/Support')
-rw-r--r--lld/lib/Support/CMakeLists.txt9
-rw-r--r--lld/lib/Support/Memory.cpp27
2 files changed, 0 insertions, 36 deletions
diff --git a/lld/lib/Support/CMakeLists.txt b/lld/lib/Support/CMakeLists.txt
deleted file mode 100644
index 18dccdbc50c..00000000000
--- a/lld/lib/Support/CMakeLists.txt
+++ /dev/null
@@ -1,9 +0,0 @@
-add_lld_library(lldSupport
- Memory.cpp
-
- ADDITIONAL_HEADER_DIRS
- ${LLD_INCLUDE_DIR}/lld/Support
-
- LINK_LIBS
- LLVMSupport
-)
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