summaryrefslogtreecommitdiff
path: root/lib/DebugInfo/DWARFUnit.cpp
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 /lib/DebugInfo/DWARFUnit.cpp
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 'lib/DebugInfo/DWARFUnit.cpp')
-rw-r--r--lib/DebugInfo/DWARFUnit.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/DebugInfo/DWARFUnit.cpp b/lib/DebugInfo/DWARFUnit.cpp
index 25062cd922..090d441a14 100644
--- a/lib/DebugInfo/DWARFUnit.cpp
+++ b/lib/DebugInfo/DWARFUnit.cpp
@@ -194,12 +194,9 @@ void DWARFUnit::extractDIEsToVector(
uint32_t NextCUOffset = getNextUnitOffset();
DWARFDebugInfoEntryMinimal DIE;
uint32_t Depth = 0;
- const uint8_t *FixedFormSizes =
- DWARFFormValue::getFixedFormSizes(getAddressByteSize(), getVersion());
bool IsCUDie = true;
- while (Offset < NextCUOffset &&
- DIE.extractFast(this, FixedFormSizes, &Offset)) {
+ while (Offset < NextCUOffset && DIE.extractFast(this, &Offset)) {
if (IsCUDie) {
if (AppendCUDie)
Dies.push_back(DIE);