mirror of
https://github.com/opnsense/src.git
synced 2026-02-26 11:20:29 -05:00
This uses the new layout of the upstream repository, which was recently migrated to GitHub, and converted into a "monorepo". That is, most of the earlier separate sub-projects with their own branches and tags were consolidated into one top-level directory, and are now branched and tagged together. Updating the vendor area to match this layout is next.
28 lines
886 B
C++
28 lines
886 B
C++
//===- Core/File.cpp - A Container of Atoms -------------------------------===//
|
|
//
|
|
// 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/Core/File.h"
|
|
#include <mutex>
|
|
|
|
namespace lld {
|
|
|
|
File::~File() = default;
|
|
|
|
File::AtomVector<DefinedAtom> File::_noDefinedAtoms;
|
|
File::AtomVector<UndefinedAtom> File::_noUndefinedAtoms;
|
|
File::AtomVector<SharedLibraryAtom> File::_noSharedLibraryAtoms;
|
|
File::AtomVector<AbsoluteAtom> File::_noAbsoluteAtoms;
|
|
|
|
std::error_code File::parse() {
|
|
std::lock_guard<std::mutex> lock(_parseMutex);
|
|
if (!_lastError.hasValue())
|
|
_lastError = doParse();
|
|
return _lastError.getValue();
|
|
}
|
|
|
|
} // end namespace lld
|