summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2009-09-10 00:13:16 +0000
committerBill Wendling <isanbard@gmail.com>2009-09-10 00:13:16 +0000
commit73094e15c48b86d1e85f87bb0c3dc0cec65381a5 (patch)
tree819e881b1e60c38d3b2b9f0256e57c7ce6c0032f /llvm
parente61ef62cc2a796c27d0d7d12cd171589f14ed225 (diff)
downloadbcm5719-llvm-73094e15c48b86d1e85f87bb0c3dc0cec65381a5.tar.gz
bcm5719-llvm-73094e15c48b86d1e85f87bb0c3dc0cec65381a5.zip
Use the SizeOfEncodedValue function instead of magic variables for the
sizeof(DW_EH_PE_udata4). llvm-svn: 81408
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp
index 166c2fee57a..a41d1b00e46 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp
@@ -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
OpenPOWER on IntegriCloud