2011-02-20 12:57:14 +00:00
|
|
|
//===-- MCELFObjectTargetWriter.cpp - ELF Target Writer Subclass ----------===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#include "llvm/MC/MCELFObjectWriter.h"
|
|
|
|
|
|
|
|
using namespace llvm;
|
|
|
|
|
|
|
|
MCELFObjectTargetWriter::MCELFObjectTargetWriter(bool Is64Bit_,
|
2012-04-14 13:54:10 +00:00
|
|
|
uint8_t OSABI_,
|
2011-02-20 12:57:14 +00:00
|
|
|
uint16_t EMachine_,
|
2012-08-15 19:34:23 +00:00
|
|
|
bool HasRelocationAddend_,
|
|
|
|
bool IsN64_)
|
2012-04-14 13:54:10 +00:00
|
|
|
: OSABI(OSABI_), EMachine(EMachine_),
|
2012-08-15 19:34:23 +00:00
|
|
|
HasRelocationAddend(HasRelocationAddend_), Is64Bit(Is64Bit_),
|
|
|
|
IsN64(IsN64_){
|
2011-02-20 12:57:14 +00:00
|
|
|
}
|
|
|
|
|
2015-06-09 19:06:30 +00:00
|
|
|
bool MCELFObjectTargetWriter::needsRelocateWithSymbol(const MCSymbol &Sym,
|
2014-11-24 09:08:18 +00:00
|
|
|
unsigned Type) const {
|
|
|
|
return false;
|
2011-02-20 12:57:14 +00:00
|
|
|
}
|
2015-05-27 18:44:32 +00:00
|
|
|
|
|
|
|
void
|
|
|
|
MCELFObjectTargetWriter::sortRelocs(const MCAssembler &Asm,
|
|
|
|
std::vector<ELFRelocationEntry> &Relocs) {
|
|
|
|
}
|