diff options
author | Jim Grosbach <grosbach@apple.com> | 2010-09-30 17:45:51 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2010-09-30 17:45:51 +0000 |
commit | 3787a40e038d6444a1b0e93f1cdc55fb006a5392 (patch) | |
tree | ffd0dfb634321a38ebe2278774c726885607e35d | |
parent | 4b1da2b618dd1d52a6ae4b34c45c766233dac367 (diff) |
Move getPointerSize() to the base class since it's not dependent on MachO
vs. ELF
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115180 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/ARM/ARMAsmBackend.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/Target/ARM/ARMAsmBackend.cpp b/lib/Target/ARM/ARMAsmBackend.cpp index acbb04790a..df439a41b3 100644 --- a/lib/Target/ARM/ARMAsmBackend.cpp +++ b/lib/Target/ARM/ARMAsmBackend.cpp @@ -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; } |