
This patch is extracted from D96035, it adds support for the existing DWARFLinker functionality. What is not supported yet: 1. Types deduplication(--odr mode). 2. Modules deduplication. 3. Generation of index tables. Reland2: temporarily disabled call to "--linker llvm" for tls-variable.test and location-expression.test as it does not work properly on bigendian architecture. Differential Revision: https://reviews.llvm.org/D153268
19 lines
828 B
C++
19 lines
828 B
C++
//=== DWARFFile.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 "llvm/DWARFLinkerParallel/DWARFFile.h"
|
|
#include "DWARFLinkerGlobalData.h"
|
|
|
|
llvm::dwarflinker_parallel::DWARFFile::DWARFFile(
|
|
StringRef Name, std::unique_ptr<DWARFContext> Dwarf,
|
|
std::unique_ptr<AddressesMap> Addresses,
|
|
const std::vector<std::string> &Warnings,
|
|
DWARFFile::UnloadCallbackTy UnloadFunc)
|
|
: FileName(Name), Dwarf(std::move(Dwarf)), Addresses(std::move(Addresses)),
|
|
Warnings(Warnings), UnloadFunc(UnloadFunc) {}
|