[lld] fccaa89 - [llvm/DWARFDebugLine] Fix a typo in one warning message

Pavel Labath via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 11 04:05:06 PDT 2020


Author: Pavel Labath
Date: 2020-06-11T13:04:52+02:00
New Revision: fccaa89e23afac9c73964abffb42c19f70ca6460

URL: https://github.com/llvm/llvm-project/commit/fccaa89e23afac9c73964abffb42c19f70ca6460
DIFF: https://github.com/llvm/llvm-project/commit/fccaa89e23afac9c73964abffb42c19f70ca6460.diff

LOG: [llvm/DWARFDebugLine] Fix a typo in one warning message

Added: 
    

Modified: 
    lld/test/ELF/undef.s
    llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp
    llvm/test/tools/llvm-dwarfdump/X86/debug_line_invalid.test
    llvm/unittests/DebugInfo/DWARF/DWARFDebugLineTest.cpp

Removed: 
    


################################################################################
diff  --git a/lld/test/ELF/undef.s b/lld/test/ELF/undef.s
index 4d9da459654c..4f39d20dd6a0 100644
--- a/lld/test/ELF/undef.s
+++ b/lld/test/ELF/undef.s
@@ -51,7 +51,7 @@
 # Show that all line table problems are mentioned as soon as the object's line information
 # is requested, even if that particular part of the line information is not currently required.
 # Also show that the warnings are only printed once.
-# CHECK:      warning: unknown data in line table prologue at offset 0x00000000: parsing ended (at offset 0x00000037) before reaching the prologue at offset 0x00000038
+# CHECK:      warning: unknown data in line table prologue at offset 0x00000000: parsing ended (at offset 0x00000037) before reaching the prologue end at offset 0x00000038
 # CHECK-NEXT: warning: parsing line table prologue at offset 0x0000005b: unsupported version 1
 # CHECK-NEXT: warning: last sequence in debug line table at offset 0x00000061 is not terminated
 # CHECK:      error: undefined symbol: zed6a

diff  --git a/llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp b/llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp
index 05effc959c0e..2faee15bc045 100644
--- a/llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp
+++ b/llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp
@@ -433,7 +433,7 @@ Error DWARFDebugLine::Prologue::parse(
         errc::invalid_argument,
         "unknown data in line table prologue at offset 0x%8.8" PRIx64
         ": parsing ended (at offset 0x%8.8" PRIx64
-        ") before reaching the prologue at offset 0x%8.8" PRIx64,
+        ") before reaching the prologue end at offset 0x%8.8" PRIx64,
         PrologueOffset, *OffsetPtr, EndPrologueOffset));
   }
   return Error::success();

diff  --git a/llvm/test/tools/llvm-dwarfdump/X86/debug_line_invalid.test b/llvm/test/tools/llvm-dwarfdump/X86/debug_line_invalid.test
index cb0e0ac37968..0b2116a6c0ab 100644
--- a/llvm/test/tools/llvm-dwarfdump/X86/debug_line_invalid.test
+++ b/llvm/test/tools/llvm-dwarfdump/X86/debug_line_invalid.test
@@ -105,7 +105,7 @@
 
 ## Prologue with length longer than parsed.
 # NONFATAL:      debug_line[0x000000c7]
-# SOME-ERR-NEXT: warning: unknown data in line table prologue at offset 0x000000c7: parsing ended (at offset 0x00000101) before reaching the prologue at offset 0x00000102
+# SOME-ERR-NEXT: warning: unknown data in line table prologue at offset 0x000000c7: parsing ended (at offset 0x00000101) before reaching the prologue end at offset 0x00000102
 # NONFATAL-NEXT: Line table prologue
 # NONFATAL:      file_names[  2]:
 # NONFATAL-NEXT:            name: "file2"

diff  --git a/llvm/unittests/DebugInfo/DWARF/DWARFDebugLineTest.cpp b/llvm/unittests/DebugInfo/DWARF/DWARFDebugLineTest.cpp
index d00d4c8938e2..d01c24a3de89 100644
--- a/llvm/unittests/DebugInfo/DWARF/DWARFDebugLineTest.cpp
+++ b/llvm/unittests/DebugInfo/DWARF/DWARFDebugLineTest.cpp
@@ -427,7 +427,7 @@ TEST_P(DebugLineParameterisedFixture, ErrorForTooLargePrologueLength) {
           ("unknown data in line table prologue at offset 0x00000000: "
            "parsing ended (at offset 0x000000" +
            Twine::utohexstr(ExpectedEnd - 1) +
-           ") before reaching the prologue at offset 0x000000" +
+           ") before reaching the prologue end at offset 0x000000" +
            Twine::utohexstr(ExpectedEnd))
               .str()));
 }


        


More information about the llvm-commits mailing list