1 //=== DWARFFile.cpp -------------------------------------------------------===//
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
7 //===----------------------------------------------------------------------===//
9 #include "llvm/DWARFLinkerParallel/DWARFFile.h"
10 #include "DWARFLinkerGlobalData.h"
12 llvm::dwarflinker_parallel::DWARFFile::DWARFFile(
13 StringRef Name
, std::unique_ptr
<DWARFContext
> Dwarf
,
14 std::unique_ptr
<AddressesMap
> Addresses
,
15 DWARFFile::UnloadCallbackTy UnloadFunc
)
16 : FileName(Name
), Dwarf(std::move(Dwarf
)), Addresses(std::move(Addresses
)),
17 UnloadFunc(UnloadFunc
) {}