summaryrefslogtreecommitdiff
path: root/include/llvm/DebugInfo
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2013-10-28 23:41:49 +0000
committerAlexey Samsonov <samsonov@google.com>2013-10-28 23:41:49 +0000
commit6faff4886a3059a8cda08f015d29a6c9a0a4de3c (patch)
treeb053da16d95ba9281bcfb868b049df1009f01f41 /include/llvm/DebugInfo
parent1765daa21c51a3e6bfc7db4adbbcbac0e0dcff3e (diff)
downloadllvm-6faff4886a3059a8cda08f015d29a6c9a0a4de3c.tar.gz
llvm-6faff4886a3059a8cda08f015d29a6c9a0a4de3c.tar.bz2
llvm-6faff4886a3059a8cda08f015d29a6c9a0a4de3c.tar.xz
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/llvm/DebugInfo')
-rw-r--r--include/llvm/DebugInfo/DWARFFormValue.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/DebugInfo/DWARFFormValue.h b/include/llvm/DebugInfo/DWARFFormValue.h
index a9d1ec0b32..533d2593b1 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);
};
}