mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-26 07:24:25 +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:
@ -594,15 +594,14 @@ void DwarfException::EmitExceptionTable() {
|
|||||||
// Final tallies.
|
// Final tallies.
|
||||||
|
|
||||||
// Call sites.
|
// Call sites.
|
||||||
const unsigned SiteStartSize = sizeof(int32_t); // DW_EH_PE_udata4
|
const unsigned SiteStartSize = SizeOfEncodedValue(dwarf::DW_EH_PE_udata4);
|
||||||
const unsigned SiteLengthSize = sizeof(int32_t); // DW_EH_PE_udata4
|
const unsigned SiteLengthSize = SizeOfEncodedValue(dwarf::DW_EH_PE_udata4);
|
||||||
const unsigned LandingPadSize = sizeof(int32_t); // DW_EH_PE_udata4
|
const unsigned LandingPadSize = SizeOfEncodedValue(dwarf::DW_EH_PE_udata4);
|
||||||
unsigned SizeSites;
|
unsigned SizeSites;
|
||||||
|
|
||||||
bool HaveTTData = (MAI->getExceptionHandlingType() == ExceptionHandling::SjLj)
|
bool HaveTTData = (MAI->getExceptionHandlingType() == ExceptionHandling::SjLj)
|
||||||
? (!TypeInfos.empty() || !FilterIds.empty()) : true;
|
? (!TypeInfos.empty() || !FilterIds.empty()) : true;
|
||||||
|
|
||||||
|
|
||||||
if (MAI->getExceptionHandlingType() == ExceptionHandling::SjLj) {
|
if (MAI->getExceptionHandlingType() == ExceptionHandling::SjLj) {
|
||||||
SizeSites = 0;
|
SizeSites = 0;
|
||||||
} else
|
} else
|
||||||
|
Reference in New Issue
Block a user