forked from OSchip/llvm-project
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:
parent
4b4db40174
commit
e513bfd86d
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue