diff options
| author | David Blaikie <dblaikie@gmail.com> | 2019-10-02 22:58:02 +0000 |
|---|---|---|
| committer | David Blaikie <dblaikie@gmail.com> | 2019-10-02 22:58:02 +0000 |
| commit | 11e0bcf8a27c413b53b9061aeea601264bfe2c76 (patch) | |
| tree | d8b413f265551b6f66e8981c1d69c3d7d564d17a /llvm/lib/CodeGen/AsmPrinter/DebugLocStream.h | |
| parent | 629cad1266bd9ef441eeadf9bcae21e1df094d71 (diff) | |
| download | bcm5719-llvm-11e0bcf8a27c413b53b9061aeea601264bfe2c76.tar.gz bcm5719-llvm-11e0bcf8a27c413b53b9061aeea601264bfe2c76.zip | |
DebugInfo: Rename DebugLocStream::Entry::Begin/EndSym to just Begin/End
Brings this struct in line with the RangeSpan class so they might
eventually be used by common template code for generating range/loc
lists with less duplicate code.
llvm-svn: 373540
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DebugLocStream.h')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DebugLocStream.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DebugLocStream.h b/llvm/lib/CodeGen/AsmPrinter/DebugLocStream.h index 789291771b5..a062baf7698 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DebugLocStream.h +++ b/llvm/lib/CodeGen/AsmPrinter/DebugLocStream.h @@ -38,14 +38,10 @@ public: : CU(CU), EntryOffset(EntryOffset) {} }; struct Entry { - const MCSymbol *BeginSym; - const MCSymbol *EndSym; + const MCSymbol *Begin; + const MCSymbol *End; size_t ByteOffset; size_t CommentOffset; - Entry(const MCSymbol *BeginSym, const MCSymbol *EndSym, size_t ByteOffset, - size_t CommentOffset) - : BeginSym(BeginSym), EndSym(EndSym), ByteOffset(ByteOffset), - CommentOffset(CommentOffset) {} }; private: @@ -93,7 +89,7 @@ private: /// Until the next call, bytes added to the stream will be added to this /// entry. void startEntry(const MCSymbol *BeginSym, const MCSymbol *EndSym) { - Entries.emplace_back(BeginSym, EndSym, DWARFBytes.size(), Comments.size()); + Entries.push_back({BeginSym, EndSym, DWARFBytes.size(), Comments.size()}); } /// Finalize a .debug_loc entry, deleting if it's empty. |

