diff options
author | David Majnemer <david.majnemer@gmail.com> | 2016-01-21 01:59:03 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2016-01-21 01:59:03 +0000 |
commit | 8cc30787b091712e4ff834efc329c5756208d1f8 (patch) | |
tree | 5efebe10aadcb2513611f6eb7e15d2073dea85c5 /llvm/lib/MC/MCDwarf.cpp | |
parent | 2f13f223c7a997a5dc6c67a70050260d13d56f5c (diff) | |
download | bcm5719-llvm-8cc30787b091712e4ff834efc329c5756208d1f8.tar.gz bcm5719-llvm-8cc30787b091712e4ff834efc329c5756208d1f8.zip |
Rename MCLineEntry to MCDwarfLineEntry
MCLineEntry gives the impression that it is generic MC machinery.
However, it is specific to DWARF.
llvm-svn: 258381
Diffstat (limited to 'llvm/lib/MC/MCDwarf.cpp')
-rw-r--r-- | llvm/lib/MC/MCDwarf.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/MC/MCDwarf.cpp b/llvm/lib/MC/MCDwarf.cpp index dafa7683b1a..f2de2fc7255 100644 --- a/llvm/lib/MC/MCDwarf.cpp +++ b/llvm/lib/MC/MCDwarf.cpp @@ -46,20 +46,20 @@ static inline uint64_t ScaleAddrDelta(MCContext &Context, uint64_t AddrDelta) { // and if there is information from the last .loc directive that has yet to have // a line entry made for it is made. // -void MCLineEntry::Make(MCObjectStreamer *MCOS, MCSection *Section) { +void MCDwarfLineEntry::Make(MCObjectStreamer *MCOS, MCSection *Section) { if (!MCOS->getContext().getDwarfLocSeen()) return; // Create a symbol at in the current section for use in the line entry. MCSymbol *LineSym = MCOS->getContext().createTempSymbol(); - // Set the value of the symbol to use for the MCLineEntry. + // Set the value of the symbol to use for the MCDwarfLineEntry. MCOS->EmitLabel(LineSym); // Get the current .loc info saved in the context. const MCDwarfLoc &DwarfLoc = MCOS->getContext().getCurrentDwarfLoc(); // Create a (local) line entry with the symbol and the current .loc info. - MCLineEntry LineEntry(LineSym, DwarfLoc); + MCDwarfLineEntry LineEntry(LineSym, DwarfLoc); // clear DwarfLocSeen saying the current .loc info is now used. MCOS->getContext().clearDwarfLocSeen(); @@ -98,7 +98,7 @@ static inline const MCExpr *MakeStartMinusEndExpr(const MCStreamer &MCOS, // static inline void EmitDwarfLineTable(MCObjectStreamer *MCOS, MCSection *Section, - const MCLineSection::MCLineEntryCollection &LineEntries) { + const MCLineSection::MCDwarfLineEntryCollection &LineEntries) { unsigned FileNum = 1; unsigned LastLine = 1; unsigned Column = 0; @@ -107,7 +107,7 @@ EmitDwarfLineTable(MCObjectStreamer *MCOS, MCSection *Section, unsigned Discriminator = 0; MCSymbol *LastLabel = nullptr; - // Loop through each MCLineEntry and encode the dwarf line number table. + // Loop through each MCDwarfLineEntry and encode the dwarf line number table. for (auto it = LineEntries.begin(), ie = LineEntries.end(); it != ie; ++it) { |