//===- 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 namespace lld { File::~File() = default; File::AtomVector File::_noDefinedAtoms; File::AtomVector File::_noUndefinedAtoms; File::AtomVector File::_noSharedLibraryAtoms; File::AtomVector File::_noAbsoluteAtoms; std::error_code File::parse() { std::lock_guard lock(_parseMutex); if (!_lastError.hasValue()) _lastError = doParse(); return _lastError.getValue(); } } // end namespace lld