diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2007-05-11 08:47:35 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2007-05-11 08:47:35 +0000 |
commit | 22d5c37f328950127981b389389abb985d99da28 (patch) | |
tree | 63051668a4ae057f23981bd84117c2fc5ceaaaee /lib/CodeGen/DwarfWriter.cpp | |
parent | 29c9cafe4698cf045bf0edb042afa24335eeed97 (diff) |
Perform correct actions numbers/sizes computation
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36988 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/DwarfWriter.cpp')
-rw-r--r-- | lib/CodeGen/DwarfWriter.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/CodeGen/DwarfWriter.cpp b/lib/CodeGen/DwarfWriter.cpp index 29f428b7e9..04ee9e5796 100644 --- a/lib/CodeGen/DwarfWriter.cpp +++ b/lib/CodeGen/DwarfWriter.cpp @@ -2958,13 +2958,11 @@ private: // Record the first action of the landing pad site. FirstAction = SizeActions + SizeSiteActions - SizeAction + 1; } - - unsigned M = LandingPad.BeginLabels.size(); - for (unsigned j = 0; j!=M; ++j) - Actions.push_back(FirstAction); + Actions.push_back(FirstAction); // Compute this sites contribution to size. - SizeActions += SizeSiteActions*M; + SizeActions += SizeSiteActions; + unsigned M = LandingPad.BeginLabels.size(); SizeSites += M*(sizeof(int32_t) + // Site start. sizeof(int32_t) + // Site length. sizeof(int32_t) + // Landing pad. |