diff options
author | Alexey Samsonov <samsonov@google.com> | 2013-10-28 23:41:49 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2013-10-28 23:41:49 +0000 |
commit | 6faff4886a3059a8cda08f015d29a6c9a0a4de3c (patch) | |
tree | b053da16d95ba9281bcfb868b049df1009f01f41 /include | |
parent | 1765daa21c51a3e6bfc7db4adbbcbac0e0dcff3e (diff) | |
download | external_llvm-6faff4886a3059a8cda08f015d29a6c9a0a4de3c.zip external_llvm-6faff4886a3059a8cda08f015d29a6c9a0a4de3c.tar.gz external_llvm-6faff4886a3059a8cda08f015d29a6c9a0a4de3c.tar.bz2 |
DWARF parser: Use ArrayRef to represent form sizes and simplify DWARFDIE::extractFast() interface. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193560 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/DebugInfo/DWARFFormValue.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/DebugInfo/DWARFFormValue.h b/include/llvm/DebugInfo/DWARFFormValue.h index a9d1ec0..533d259 100644 --- a/include/llvm/DebugInfo/DWARFFormValue.h +++ b/include/llvm/DebugInfo/DWARFFormValue.h @@ -10,6 +10,7 @@ #ifndef LLVM_DEBUGINFO_DWARFFORMVALUE_H #define LLVM_DEBUGINFO_DWARFFORMVALUE_H +#include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/Optional.h" #include "llvm/Support/DataExtractor.h" @@ -75,7 +76,8 @@ public: static bool skipValue(uint16_t form, DataExtractor debug_info_data, uint32_t *offset_ptr, const DWARFUnit *u); - static const uint8_t *getFixedFormSizes(uint8_t AddrSize, uint16_t Version); + static ArrayRef<uint8_t> getFixedFormSizes(uint8_t AddrSize, + uint16_t Version); }; } |