[llvm-commits] [llvm] r115180 - /llvm/trunk/lib/Target/ARM/ARMAsmBackend.cpp
Jim Grosbach
grosbach at apple.com
Thu Sep 30 10:45:51 PDT 2010
Author: grosbach
Date: Thu Sep 30 12:45:51 2010
New Revision: 115180
URL: http://llvm.org/viewvc/llvm-project?rev=115180&view=rev
Log:
Move getPointerSize() to the base class since it's not dependent on MachO
vs. ELF
Modified:
llvm/trunk/lib/Target/ARM/ARMAsmBackend.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMAsmBackend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMAsmBackend.cpp?rev=115180&r1=115179&r2=115180&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMAsmBackend.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMAsmBackend.cpp Thu Sep 30 12:45:51 2010
@@ -36,6 +36,10 @@
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 @@
/*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 @@
return new MachObjectWriter(OS, /*Is64Bit=*/false);
}
- unsigned getPointerSize() const {
- return 4;
- }
-
virtual bool doesSectionRequireSymbols(const MCSection &Section) const {
return false;
}
More information about the llvm-commits
mailing list