aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/ARM/ARMAsmBackend.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Target/ARM/ARMAsmBackend.cpp')
-rw-r--r--lib/Target/ARM/ARMAsmBackend.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMAsmBackend.cpp b/lib/Target/ARM/ARMAsmBackend.cpp
index f13c2bbf48..9de6eba09f 100644
--- a/lib/Target/ARM/ARMAsmBackend.cpp
+++ b/lib/Target/ARM/ARMAsmBackend.cpp
@@ -84,6 +84,10 @@ public:
/*IsLittleEndian=*/true,
/*HasRelocationAddend=*/false);
}
+
+ unsigned getPointerSize() const {
+ return 4;
+ };
};
// Fixme: can we raise this to share code between Darwin and ELF?
@@ -116,6 +120,10 @@ public:
return new MachObjectWriter(OS, /*Is64Bit=*/false);
}
+ unsigned getPointerSize() const {
+ return 4;
+ };
+
virtual bool doesSectionRequireSymbols(const MCSection &Section) const {
return false;
}