Coverage Report

Created: 2019-05-19 14:56

/Users/buildslave/jenkins/workspace/clang-stage2-coverage-R/llvm/tools/lld/Common/Memory.cpp
Line
Count
Source
1
//===- Memory.cpp ---------------------------------------------------------===//
2
//
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
// See https://llvm.org/LICENSE.txt for license information.
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
//
7
//===----------------------------------------------------------------------===//
8
9
#include "lld/Common/Memory.h"
10
11
using namespace llvm;
12
using namespace lld;
13
14
BumpPtrAllocator lld::BAlloc;
15
StringSaver lld::Saver{BAlloc};
16
std::vector<SpecificAllocBase *> lld::SpecificAllocBase::Instances;
17
18
3.62k
void lld::freeArena() {
19
3.62k
  for (SpecificAllocBase *Alloc : SpecificAllocBase::Instances)
20
105k
    Alloc->reset();
21
3.62k
  BAlloc.Reset();
22
3.62k
}