mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-19 09:57:42 +00:00
Use a range loop.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252260 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2d5e28325f
commit
26697a6d48
@ -1525,9 +1525,7 @@ void MCDwarfFrameEmitter::Emit(MCObjectStreamer &Streamer, MCAsmBackend *MAB,
|
||||
const MCSymbol *DummyDebugKey = nullptr;
|
||||
NeedsEHFrameSection = !MOFI->getSupportsCompactUnwindWithoutEHFrame();
|
||||
bool CanOmitDwarf = MOFI->getOmitDwarfIfHaveCompactUnwind();
|
||||
for (unsigned i = 0, n = FrameArray.size(); i < n; ++i) {
|
||||
const MCDwarfFrameInfo &Frame = FrameArray[i];
|
||||
|
||||
for (const MCDwarfFrameInfo &Frame : FrameArray) {
|
||||
if (CanOmitDwarf && Frame.CompactUnwindEncoding !=
|
||||
MOFI->getCompactUnwindDwarfEHFrameOnly())
|
||||
// Don't generate an EH frame if we don't need one. I.e., it's taken care
|
||||
|
Loading…
Reference in New Issue
Block a user