Tweak to match change in LLVM API, in r306315.

llvm-svn: 306316
This commit is contained in:
Paul Robinson 2017-06-26 18:43:26 +00:00
parent 75c068c50b
commit a22c98c030

View File

@ -906,6 +906,7 @@ readCompUnit(const NormalizedFile &normalizedFile,
abbrevData.getU8(&abbrevOffset);
uint32_t name;
llvm::dwarf::Form form;
llvm::DWARFFormParams formParams = {version, addrSize, Format};
TranslationUnitSource tu;
while ((name = abbrevData.getULEB128(&abbrevOffset)) |
(form = static_cast<llvm::dwarf::Form>(
@ -929,8 +930,7 @@ readCompUnit(const NormalizedFile &normalizedFile,
break;
}
default:
llvm::DWARFFormValue::skipValue(form, infoData, &offset, version,
addrSize, Format);
llvm::DWARFFormValue::skipValue(form, infoData, &offset, formParams);
}
}
return tu;