summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMAsmBackend.cpp
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2010-09-30 17:45:51 +0000
committerJim Grosbach <grosbach@apple.com>2010-09-30 17:45:51 +0000
commit7e872969ce63b6f1ecb8e2644b4f76f9ba7ec97e (patch)
tree7ca5c2ae2ad0f494d52d85ee28438e7672b29488 /llvm/lib/Target/ARM/ARMAsmBackend.cpp
parent7f9a0dc4b469846f571c44fefee851b0982a64fb (diff)
downloadbcm5719-llvm-7e872969ce63b6f1ecb8e2644b4f76f9ba7ec97e.tar.gz
bcm5719-llvm-7e872969ce63b6f1ecb8e2644b4f76f9ba7ec97e.zip
Move getPointerSize() to the base class since it's not dependent on MachO
vs. ELF llvm-svn: 115180
Diffstat (limited to 'llvm/lib/Target/ARM/ARMAsmBackend.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMAsmBackend.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/llvm/lib/Target/ARM/ARMAsmBackend.cpp b/llvm/lib/Target/ARM/ARMAsmBackend.cpp
index acbb04790af..df439a41b33 100644
--- a/llvm/lib/Target/ARM/ARMAsmBackend.cpp
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud