Files
clang-p2996/lld/lib/ReaderWriter/ELF/AMDGPU/AMDGPUExecutableWriter.cpp
Tom Stellard 36c6f6b874 ELF/AMDGPU: Remove unused private member variable
This should fix the one of the failing bots.

llvm-svn: 246160
2015-08-27 16:52:58 +00:00

34 lines
1.3 KiB
C++

//===- lib/ReaderWriter/ELF/AMDGPU/AMDGPUExecutableWriter.cpp -------------===//
//
// The LLVM Linker
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#include "AMDGPUExecutableWriter.h"
using namespace lld::elf;
AMDGPUExecutableWriter::AMDGPUExecutableWriter(AMDGPULinkingContext &ctx,
AMDGPUTargetLayout &layout)
: ExecutableWriter(ctx, layout), _ctx(ctx) {}
void AMDGPUExecutableWriter::createImplicitFiles(
std::vector<std::unique_ptr<File>> &Result) {
// ExecutableWriter::createImplicitFiles() adds C runtime symbols that we
// don't need, so we use the OutputELFWriter implementation instead.
OutputELFWriter<ELF64LE>::createImplicitFiles(Result);
}
void AMDGPUExecutableWriter::finalizeDefaultAtomValues() {
// ExecutableWriter::finalizeDefaultAtomValues() assumes the presence of
// C runtime symbols. However, since we skip the call to
// ExecutableWriter::createImplicitFiles(), these symbols are never added
// and ExectuableWriter::finalizeDefaultAtomValues() will crash if we call
// it.
OutputELFWriter<ELF64LE>::finalizeDefaultAtomValues();
}