diff options
author | Paul Robinson <paul.robinson@sony.com> | 2017-06-26 19:52:32 +0000 |
---|---|---|
committer | Paul Robinson <paul.robinson@sony.com> | 2017-06-26 19:52:32 +0000 |
commit | 36e85a867b448dec4ab805c869de1512cb1a7b2c (patch) | |
tree | 240f386c876a3012c0a9eddf590278ca9b4c42fe /llvm/lib/DebugInfo/DWARF/DWARFFormValue.cpp | |
parent | e8a3be4693eb3d00a352b3f930fbcc85bff3797f (diff) | |
download | bcm5719-llvm-36e85a867b448dec4ab805c869de1512cb1a7b2c.tar.gz bcm5719-llvm-36e85a867b448dec4ab805c869de1512cb1a7b2c.zip |
[DWARF] NFC: Give DwarfFormat a 1-byte base type.
In particular this reduces DWARFFormParams from 64 to 32 bits; pass it
around by value.
llvm-svn: 306324
Diffstat (limited to 'llvm/lib/DebugInfo/DWARF/DWARFFormValue.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/DWARF/DWARFFormValue.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFFormValue.cpp b/llvm/lib/DebugInfo/DWARF/DWARFFormValue.cpp index dda4a0cdb31..861114bde1f 100644 --- a/llvm/lib/DebugInfo/DWARF/DWARFFormValue.cpp +++ b/llvm/lib/DebugInfo/DWARF/DWARFFormValue.cpp @@ -61,7 +61,7 @@ static const DWARFFormValue::FormClass DWARF4FormClasses[] = { Optional<uint8_t> DWARFFormValue::getFixedByteSize(dwarf::Form Form, - const DWARFFormParams &Params) { + const DWARFFormParams Params) { switch (Form) { case DW_FORM_addr: assert(Params.Version && Params.AddrSize && "Invalid Params for form"); @@ -146,7 +146,7 @@ DWARFFormValue::getFixedByteSize(dwarf::Form Form, bool DWARFFormValue::skipValue(dwarf::Form Form, DataExtractor DebugInfoData, uint32_t *OffsetPtr, - const DWARFFormParams &Params) { + const DWARFFormParams Params) { bool Indirect = false; do { switch (Form) { |