summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-dwp/llvm-dwp.cpp
diff options
context:
space:
mode:
authorPaul Robinson <paul.robinson@sony.com>2017-06-26 18:43:01 +0000
committerPaul Robinson <paul.robinson@sony.com>2017-06-26 18:43:01 +0000
commit75c068c50bf8ce761b51344ffa09418c280cd27b (patch)
tree3d9634e7c1388de2b0a6b011bb18307bd24d1f57 /llvm/tools/llvm-dwp/llvm-dwp.cpp
parentd58f05179270e38fd7346e8a53a2a915eb27d041 (diff)
downloadbcm5719-llvm-75c068c50bf8ce761b51344ffa09418c280cd27b.tar.gz
bcm5719-llvm-75c068c50bf8ce761b51344ffa09418c280cd27b.zip
[DWARF] NFC: Collect info used by DWARFFormValue into a helper.
Some forms have sizes that depend on the DWARF version, DWARF format (32/64-bit), or the size of an address. Collect these into a struct to simplify passing them around. Require callers to provide one when they query a form's size. Differential Revision: http://reviews.llvm.org/D34570 llvm-svn: 306315
Diffstat (limited to 'llvm/tools/llvm-dwp/llvm-dwp.cpp')
-rw-r--r--llvm/tools/llvm-dwp/llvm-dwp.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/llvm-dwp/llvm-dwp.cpp b/llvm/tools/llvm-dwp/llvm-dwp.cpp
index f8d00b3b553..7a6922d8a3f 100644
--- a/llvm/tools/llvm-dwp/llvm-dwp.cpp
+++ b/llvm/tools/llvm-dwp/llvm-dwp.cpp
@@ -182,8 +182,8 @@ static Expected<CompileUnitIdentifiers> getCUIdentifiers(StringRef Abbrev,
ID.Signature = InfoData.getU64(&Offset);
break;
default:
- DWARFFormValue::skipValue(Form, InfoData, &Offset, Version, AddrSize,
- Format);
+ DWARFFormValue::skipValue(Form, InfoData, &Offset,
+ DWARFFormParams({Version, AddrSize, Format}));
}
}
return ID;
OpenPOWER on IntegriCloud