[llvm-commits] CVS: llvm/lib/CodeGen/DwarfWriter.cpp
Anton Korobeynikov
asl at math.spbu.ru
Fri May 11 01:47:53 PDT 2007
Changes in directory llvm/lib/CodeGen:
DwarfWriter.cpp updated: 1.140 -> 1.141
---
Log message:
Perform correct actions numbers/sizes computation
---
Diffs of the changes: (+3 -5)
DwarfWriter.cpp | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
Index: llvm/lib/CodeGen/DwarfWriter.cpp
diff -u llvm/lib/CodeGen/DwarfWriter.cpp:1.140 llvm/lib/CodeGen/DwarfWriter.cpp:1.141
--- llvm/lib/CodeGen/DwarfWriter.cpp:1.140 Fri May 11 03:23:57 2007
+++ llvm/lib/CodeGen/DwarfWriter.cpp Fri May 11 03:47:35 2007
@@ -2958,13 +2958,11 @@
// 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.
More information about the llvm-commits
mailing list