1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

Use the SizeOfEncodedValue function instead of magic variables for the

sizeof(DW_EH_PE_udata4).

llvm-svn: 81408
This commit is contained in:
Bill Wendling 2009-09-10 00:13:16 +00:00
parent e55fe46dec
commit bf36b07bff

View File

@ -594,15 +594,14 @@ void DwarfException::EmitExceptionTable() {
// Final tallies.
// Call sites.
const unsigned SiteStartSize = sizeof(int32_t); // DW_EH_PE_udata4
const unsigned SiteLengthSize = sizeof(int32_t); // DW_EH_PE_udata4
const unsigned LandingPadSize = sizeof(int32_t); // DW_EH_PE_udata4
const unsigned SiteStartSize = SizeOfEncodedValue(dwarf::DW_EH_PE_udata4);
const unsigned SiteLengthSize = SizeOfEncodedValue(dwarf::DW_EH_PE_udata4);
const unsigned LandingPadSize = SizeOfEncodedValue(dwarf::DW_EH_PE_udata4);
unsigned SizeSites;
bool HaveTTData = (MAI->getExceptionHandlingType() == ExceptionHandling::SjLj)
? (!TypeInfos.empty() || !FilterIds.empty()) : true;
if (MAI->getExceptionHandlingType() == ExceptionHandling::SjLj) {
SizeSites = 0;
} else