[llvm] 74150a0 - [objdump] Fix typo in error message.

Daniel Rodríguez Troitiño via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 23 16:28:51 PDT 2022


Author: Daniel Rodríguez Troitiño
Date: 2022-09-23T16:27:24-07:00
New Revision: 74150a0afa2d945dd498a6f5748cdb996a1bc3d2

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

LOG: [objdump] Fix typo in error message.

Change "inconsistant" for "inconsistent" in the message, the file name
and the test output.

Reviewed By: pete, MaskRay

Differential Revision: https://reviews.llvm.org/D134562

Added: 
    llvm/test/tools/llvm-objdump/MachO/Inputs/macho-inconsistent-export

Modified: 
    llvm/lib/Object/MachOObjectFile.cpp
    llvm/test/tools/llvm-objdump/MachO/bad-trie.test

Removed: 
    llvm/test/tools/llvm-objdump/MachO/Inputs/macho-inconsistant-export


################################################################################
diff  --git a/llvm/lib/Object/MachOObjectFile.cpp b/llvm/lib/Object/MachOObjectFile.cpp
index 16a24d127503b..20ac343e53449 100644
--- a/llvm/lib/Object/MachOObjectFile.cpp
+++ b/llvm/lib/Object/MachOObjectFile.cpp
@@ -3091,7 +3091,7 @@ void ExportEntry::pushNode(uint64_t offset) {
     }
     if(ExportStart + ExportInfoSize != State.Current) {
       *E = malformedError(
-          "inconsistant export info size: 0x" +
+          "inconsistent export info size: 0x" +
           Twine::utohexstr(ExportInfoSize) + " where actual size was: 0x" +
           Twine::utohexstr(State.Current - ExportStart) +
           " in export trie data at node: 0x" + Twine::utohexstr(offset));

diff  --git a/llvm/test/tools/llvm-objdump/MachO/Inputs/macho-inconsistant-export b/llvm/test/tools/llvm-objdump/MachO/Inputs/macho-inconsistent-export
similarity index 100%
rename from llvm/test/tools/llvm-objdump/MachO/Inputs/macho-inconsistant-export
rename to llvm/test/tools/llvm-objdump/MachO/Inputs/macho-inconsistent-export

diff  --git a/llvm/test/tools/llvm-objdump/MachO/bad-trie.test b/llvm/test/tools/llvm-objdump/MachO/bad-trie.test
index 69e572c3c0297..9567184c7d28d 100644
--- a/llvm/test/tools/llvm-objdump/MachO/bad-trie.test
+++ b/llvm/test/tools/llvm-objdump/MachO/bad-trie.test
@@ -31,5 +31,5 @@ LOOP_OF_CHILDERN: macho-trie-node-loop': truncated or malformed object (loop in
 RUN: not llvm-objdump --macho --exports-trie %p/Inputs/macho-trie-bad-library-ordinal 2>&1 | FileCheck --check-prefix BAD_LIBRARY_ORDINAL %s 
 BAD_LIBRARY_ORDINAL: macho-trie-bad-library-ordinal': truncated or malformed object (bad library ordinal: 69 (max 3) in export trie data at node: 0x33)
 
-RUN: not llvm-objdump --macho --exports-trie %p/Inputs/macho-inconsistant-export 2>&1 | FileCheck --check-prefix INCONSISTANT_EXPORT_SIZE %s 
-INCONSISTANT_EXPORT_SIZE: macho-inconsistant-export': truncated or malformed object (inconsistant export info size: 0x9 where actual size was: 0x5 in export trie data at node: 0x53)
+RUN: not llvm-objdump --macho --exports-trie %p/Inputs/macho-inconsistent-export 2>&1 | FileCheck --check-prefix INCONSISTENT_EXPORT_SIZE %s
+INCONSISTENT_EXPORT_SIZE: macho-inconsistent-export': truncated or malformed object (inconsistent export info size: 0x9 where actual size was: 0x5 in export trie data at node: 0x53)


        


More information about the llvm-commits mailing list