Only set output ranges when updating dbg info.

Summary: Save processing time by setting output ranges when needed.

(cherry picked from FBD3148791)
This commit is contained in:
Maksim Panchenko 2016-04-06 18:03:44 -07:00
parent 4b4db40174
commit e513bfd86d
1 changed files with 17 additions and 15 deletions

View File

@ -1397,6 +1397,7 @@ void RewriteInstance::emitFunctions() {
}
}
if (opts::UpdateDebugSections) {
MCAsmLayout Layout(
static_cast<MCObjectStreamer *>(Streamer.get())->getAssembler());
@ -1416,6 +1417,7 @@ void RewriteInstance::emitFunctions() {
BB.setOutputAddressRange(std::make_pair(BeginAddress, EndAddress));
}
}
}
OLT.emitAndFinalize(ObjectsHandle);