mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Use the SizeOfEncodedValue function instead of magic variables for the
sizeof(DW_EH_PE_udata4). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81408 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bb3e29932d
commit
40121bccbe
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user