Fix spelling.
authorRui Ueyama <ruiu@google.com>
Sun, 13 Mar 2016 03:17:44 +0000 (03:17 +0000)
committerRui Ueyama <ruiu@google.com>
Sun, 13 Mar 2016 03:17:44 +0000 (03:17 +0000)
llvm-svn: 263358

lld/ELF/LinkerScript.cpp
lld/test/ELF/linkerscript-sections-padding.s

index 677abb1..d75ebb0 100644 (file)
@@ -419,7 +419,7 @@ std::vector<uint8_t> ScriptParser::parseHex(StringRef S) {
     S = S.substr(2);
     uint8_t H;
     if (B.getAsInteger(16, H)) {
-      setError("not a HEX value: " + B);
+      setError("not a hexadecimal value: " + B);
       return {};
     }
     Hex.push_back(H);
@@ -448,7 +448,7 @@ void ScriptParser::readOutputSectionDescription() {
   StringRef Tok = peek();
   if (Tok.startswith("=")) {
     if (!Tok.startswith("=0x")) {
-      setError("filler should be a HEX value");
+      setError("filler should be a hexadecimal value");
       return;
     }
     Tok = Tok.substr(3);
index c6f4333..545739e 100644 (file)
 # RUN: echo "SECTIONS { .mysec : { *(.mysec*) } =99 }" > %t.script
 # RUN: not ld.lld -o %t.out --script %t.script %t 2>&1 \
 # RUN:   | FileCheck --check-prefix=ERR %s
-# ERR: filler should be a HEX value
+# ERR: filler should be a hexadecimal value
 
 ## Filler should be a hex value (2):
 # RUN: echo "SECTIONS { .mysec : { *(.mysec*) } =0x99XX }" > %t.script
 # RUN: not ld.lld -o %t.out --script %t.script %t 2>&1 \
 # RUN:   | FileCheck --check-prefix=ERR2 %s
-# ERR2: not a HEX value: XX
+# ERR2: not a hexadecimal value: XX
 
 .section        .mysec.1,"a"
 .align  16