003 File Manager
Current Path:
/usr/src/contrib/llvm-project/lld/Common
usr
/
src
/
contrib
/
llvm-project
/
lld
/
Common
/
📁
..
📄
Args.cpp
(2.4 KB)
📄
DWARF.cpp
(3.73 KB)
📄
ErrorHandler.cpp
(6.32 KB)
📄
Filesystem.cpp
(4.76 KB)
📄
Memory.cpp
(705 B)
📄
Reproduce.cpp
(2.14 KB)
📄
Strings.cpp
(2.82 KB)
📄
TargetOptionsCommandFlags.cpp
(1.04 KB)
📄
Timer.cpp
(2.1 KB)
📄
Version.cpp
(1.12 KB)
Editing: Memory.cpp
//===- Memory.cpp ---------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #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(); }
Upload File
Create Folder