This patch is extracted from D96035, it adds support for the type deduplication mode. With this patch DWARFLinkerParallel handles --odr option. It also processes clang modules.
19 lines
791 B
C++
19 lines
791 B
C++
//=== DWARFLinker.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 "DWARFLinkerImpl.h"
|
|
#include "DependencyTracker.h"
|
|
|
|
std::unique_ptr<llvm::dwarflinker_parallel::DWARFLinker>
|
|
llvm::dwarflinker_parallel::DWARFLinker::createLinker(
|
|
MessageHandlerTy ErrorHandler, MessageHandlerTy WarningHandler,
|
|
TranslatorFuncTy StringsTranslator) {
|
|
return std::make_unique<DWARFLinkerImpl>(ErrorHandler, WarningHandler,
|
|
StringsTranslator);
|
|
}
|