Move isFixupKindX86PCRel.

llvm-svn: 115545
This commit is contained in:
Rafael Espindola 2010-10-04 19:46:28 +00:00
parent f7e642c0da
commit 6b80b08cec

View File

@ -57,10 +57,7 @@ static void SetBinding(MCSymbolData &SD, unsigned Binding) {
SD.setFlags(OtherFlags | (Binding << ELF_STB_Shift));
}
namespace {
class ELFObjectWriterImpl {
static bool isFixupKindX86PCRel(unsigned Kind) {
static bool isFixupKindX86PCRel(unsigned Kind) {
switch (Kind) {
default:
return false;
@ -70,8 +67,11 @@ namespace {
case X86::reloc_riprel_4byte_movq_load:
return true;
}
}
}
namespace {
class ELFObjectWriterImpl {
/*static bool isFixupKindX86RIPRel(unsigned Kind) {
return Kind == X86::reloc_riprel_4byte ||
Kind == X86::reloc_riprel_4byte_movq_load;