summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKevin Enderby <enderby@apple.com>2010-09-30 16:38:07 +0000
committerKevin Enderby <enderby@apple.com>2010-09-30 16:38:07 +0000
commit8ebf66236e1a0a3f6796abcbf6be83eb6a55e3fa (patch)
tree6d38971e9692469dd0528ff526328c51adced42c /include
parent4ba2b65b8e3fd6f3c8a91873485aacff8bfe6128 (diff)
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
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Target/TargetAsmBackend.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetAsmBackend.h b/include/llvm/Target/TargetAsmBackend.h
index 979595ad4f4..b0a7af6371e 100644
--- a/include/llvm/Target/TargetAsmBackend.h
+++ b/include/llvm/Target/TargetAsmBackend.h
@@ -101,6 +101,9 @@ public:
/// has no actual object file contents.
virtual bool isVirtualSection(const MCSection &Section) const = 0;
+ /// getPointerSize - Get the pointer size in bytes.
+ virtual unsigned getPointerSize() const = 0;
+
/// ApplyFixup - Apply the \arg Value for given \arg Fixup into the provided
/// data fragment, at the offset specified by the fixup and following the
/// fixup kind as appropriate.