diff options
author | Fraser Cormack <fraser@codeplay.com> | 2022-05-12 15:45:04 +0100 |
---|---|---|
committer | Fraser Cormack <fraser@codeplay.com> | 2022-05-12 15:45:04 +0100 |
commit | 1106bc208c663fad5ded5592bb5fee84984bb35a (patch) | |
tree | 97a47ffd058130490d3e7226b1e515af11f7265f /llvm/lib/CodeGen/PrologEpilogInserter.cpp | |
parent | a975472fa6972bced6a6075fe248bffedeecd96d (diff) | |
download | llvm-1106bc208c663fad5ded5592bb5fee84984bb35a.zip llvm-1106bc208c663fad5ded5592bb5fee84984bb35a.tar.gz llvm-1106bc208c663fad5ded5592bb5fee84984bb35a.tar.bz2 |
[CodeGen][NFC] Move some comments from the end of lines to above them
This avoids wrapping the line itself awkwardly when it exceeds 80 chars.
It also better matches our style most other places.
Diffstat (limited to 'llvm/lib/CodeGen/PrologEpilogInserter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/PrologEpilogInserter.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/PrologEpilogInserter.cpp b/llvm/lib/CodeGen/PrologEpilogInserter.cpp index f222b4a..1a0f296 100644 --- a/llvm/lib/CodeGen/PrologEpilogInserter.cpp +++ b/llvm/lib/CodeGen/PrologEpilogInserter.cpp @@ -839,8 +839,8 @@ void PEI::calculateFrameObjectOffsets(MachineFunction &MF) { // Adjust 'Offset' to point to the end of last fixed sized preallocated // object. for (int i = MFI.getObjectIndexBegin(); i != 0; ++i) { - if (MFI.getStackID(i) != - TargetStackID::Default) // Only allocate objects on the default stack. + // Only allocate objects on the default stack. + if (MFI.getStackID(i) != TargetStackID::Default) continue; int64_t FixedOff; @@ -971,8 +971,8 @@ void PEI::calculateFrameObjectOffsets(MachineFunction &MF) { continue; if (StackProtectorFI == (int)i || EHRegNodeFrameIndex == (int)i) continue; - if (MFI.getStackID(i) != - TargetStackID::Default) // Only allocate objects on the default stack. + // Only allocate objects on the default stack. + if (MFI.getStackID(i) != TargetStackID::Default) continue; switch (MFI.getObjectSSPLayout(i)) { @@ -1025,8 +1025,8 @@ void PEI::calculateFrameObjectOffsets(MachineFunction &MF) { continue; if (ProtectedObjs.count(i)) continue; - if (MFI.getStackID(i) != - TargetStackID::Default) // Only allocate objects on the default stack. + // Only allocate objects on the default stack. + if (MFI.getStackID(i) != TargetStackID::Default) continue; // Add the objects that we need to allocate to our working set. |