This would permit the ELF reader to check the architecture that is being selected by the linking process. This patch also sorts the include files according to LLVM conventions. llvm-svn: 220129
24 lines
639 B
C++
24 lines
639 B
C++
//===- lib/ReaderWriter/ELF/WriterELF.cpp ---------------------------------===//
|
|
//
|
|
// The LLVM Linker
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "lld/ReaderWriter/Writer.h"
|
|
#include "DynamicLibraryWriter.h"
|
|
#include "ExecutableWriter.h"
|
|
|
|
using namespace llvm;
|
|
using namespace llvm::object;
|
|
|
|
namespace lld {
|
|
|
|
std::unique_ptr<Writer> createWriterELF(TargetHandlerBase *handler) {
|
|
return std::move(handler->getWriter());
|
|
}
|
|
|
|
} // namespace lld
|