Move getPointerSize() to the base class since it's not dependent on MachO

vs. ELF

llvm-svn: 115180
This commit is contained in:
Jim Grosbach 2010-09-30 17:45:51 +00:00
parent f3c4831b1b
commit 8bf43f57d4

View File

@ -36,6 +36,10 @@ public:
void RelaxInstruction(const MCInst &Inst, MCInst &Res) const;
bool WriteNopData(uint64_t Count, MCObjectWriter *OW) const;
unsigned getPointerSize() const {
return 4;
}
};
bool ARMAsmBackend::MayNeedRelaxation(const MCInst &Inst) const {
@ -84,10 +88,6 @@ public:
/*IsLittleEndian=*/true,
/*HasRelocationAddend=*/false);
}
unsigned getPointerSize() const {
return 4;
}
};
// Fixme: can we raise this to share code between Darwin and ELF?
@ -120,10 +120,6 @@ public:
return new MachObjectWriter(OS, /*Is64Bit=*/false);
}
unsigned getPointerSize() const {
return 4;
}
virtual bool doesSectionRequireSymbols(const MCSection &Section) const {
return false;
}