Skip to content

Commit eb19d4a

Browse files
Added this to make debugging easier
1 parent af08d1c commit eb19d4a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/lib/MCCAS/MCCASObjectV1.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3115,6 +3115,7 @@ Error MCCASBuilder::buildFragments() {
31153115
ArrayRef<MachO::any_relocation_info> RelocationBuffer;
31163116
MCDataFragmentMerger Merger(*this, &Sec);
31173117
uint64_t RelocationBufferIndex = 0;
3118+
uint64_t TotalFragmentWithoutAddendsSize = 0;
31183119
for (const MCFragment &F : Sec) {
31193120
auto Relocs = RelMap.find(&F);
31203121
if (RelocLocation == Atom) {
@@ -3158,6 +3159,7 @@ Error MCCASBuilder::buildFragments() {
31583159
partitionFragment(Asm, Addends, FinalFragmentContents, RelocationBuffer,
31593160
F, RelocationBufferIndex,
31603161
ObjectWriter.Target.isLittleEndian());
3162+
TotalFragmentWithoutAddendsSize += FinalFragmentContents.size();
31613163

31623164
if (auto E = Merger.tryMerge(F, Size, FinalFragmentContents))
31633165
return E;
@@ -3182,6 +3184,7 @@ Error MCCASBuilder::buildFragments() {
31823184

31833185
if (auto E = finalizeSection())
31843186
return E;
3187+
TotalFragmentWithoutAddendsSize = 0;
31853188
}
31863189
return finalizeGroup();
31873190
}

0 commit comments

Comments
 (0)