From 8ebf66236e1a0a3f6796abcbf6be83eb6a55e3fa Mon Sep 17 00:00:00 2001 From: Kevin Enderby Date: Thu, 30 Sep 2010 16:38:07 +0000 Subject: Adds getPointerSize() to the AsmBackend which will be needed by the final patch for the dwarf .loc support to emit dwarf line number tables. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115153 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/ARM/ARMAsmBackend.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/Target/ARM/ARMAsmBackend.cpp') 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; } -- cgit v1.2.3