You've already forked llvm-project
mirror of
https://github.com/encounter/llvm-project.git
synced 2026-03-30 11:27:19 -07:00
2017d52b54
Differential Revision: https://reviews.llvm.org/D40571 llvm-svn: 319221
24 lines
668 B
C++
24 lines
668 B
C++
//===- Memory.cpp ---------------------------------------------------------===//
|
|
//
|
|
// The LLVM Linker
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "lld/Common/Memory.h"
|
|
|
|
using namespace llvm;
|
|
using namespace lld;
|
|
|
|
BumpPtrAllocator lld::BAlloc;
|
|
StringSaver lld::Saver{BAlloc};
|
|
std::vector<SpecificAllocBase *> lld::SpecificAllocBase::Instances;
|
|
|
|
void lld::freeArena() {
|
|
for (SpecificAllocBase *Alloc : SpecificAllocBase::Instances)
|
|
Alloc->reset();
|
|
BAlloc.Reset();
|
|
}
|