[lld] r357144 - [WebAssembly] Fix typo from rL357143
Sam Clegg via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 27 19:04:31 PDT 2019
Author: sbc
Date: Wed Mar 27 19:04:31 2019
New Revision: 357144
URL: http://llvm.org/viewvc/llvm-project?rev=357144&view=rev
Log:
[WebAssembly] Fix typo from rL357143
Modified:
lld/trunk/wasm/InputChunks.cpp
lld/trunk/wasm/InputChunks.h
lld/trunk/wasm/Writer.cpp
Modified: lld/trunk/wasm/InputChunks.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/wasm/InputChunks.cpp?rev=357144&r1=357143&r2=357144&view=diff
==============================================================================
--- lld/trunk/wasm/InputChunks.cpp (original)
+++ lld/trunk/wasm/InputChunks.cpp Wed Mar 27 19:04:31 2019
@@ -22,7 +22,7 @@ using namespace llvm::support::endian;
using namespace lld;
using namespace lld::wasm;
-StringRef lld::reloctTypeToString(uint8_t RelocType) {
+StringRef lld::relocTypeToString(uint8_t RelocType) {
switch (RelocType) {
#define WASM_RELOC(NAME, REL) \
case REL: \
@@ -78,7 +78,7 @@ void InputChunk::verifyRelocTargets() co
if (Rel.Type != R_WASM_GLOBAL_INDEX_LEB) {
uint32_t ExpectedValue = File->calcExpectedValue(Rel);
if (ExpectedValue != ExistingValue)
- warn("unexpected existing value for " + reloctTypeToString(Rel.Type) +
+ warn("unexpected existing value for " + relocTypeToString(Rel.Type) +
": existing=" + Twine(ExistingValue) +
" expected=" + Twine(ExpectedValue));
}
@@ -105,7 +105,7 @@ void InputChunk::writeTo(uint8_t *Buf) c
for (const WasmRelocation &Rel : Relocations) {
uint8_t *Loc = Buf + Rel.Offset + Off;
uint32_t Value = File->calcNewValue(Rel);
- LLVM_DEBUG(dbgs() << "apply reloc: type=" << reloctTypeToString(Rel.Type)
+ LLVM_DEBUG(dbgs() << "apply reloc: type=" << relocTypeToString(Rel.Type)
<< " addend=" << Rel.Addend << " index=" << Rel.Index
<< " value=" << Value << " offset=" << Rel.Offset
<< "\n");
Modified: lld/trunk/wasm/InputChunks.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/wasm/InputChunks.h?rev=357144&r1=357143&r2=357144&view=diff
==============================================================================
--- lld/trunk/wasm/InputChunks.h (original)
+++ lld/trunk/wasm/InputChunks.h Wed Mar 27 19:04:31 2019
@@ -218,7 +218,7 @@ protected:
} // namespace wasm
std::string toString(const wasm::InputChunk *);
-StringRef reloctTypeToString(uint8_t RelocType);
+StringRef relocTypeToString(uint8_t RelocType);
} // namespace lld
Modified: lld/trunk/wasm/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/wasm/Writer.cpp?rev=357144&r1=357143&r2=357144&view=diff
==============================================================================
--- lld/trunk/wasm/Writer.cpp (original)
+++ lld/trunk/wasm/Writer.cpp Wed Mar 27 19:04:31 2019
@@ -1160,7 +1160,7 @@ void Writer::processRelocations(InputChu
auto *Sym = File->getSymbols()[Reloc.Index];
if (Sym->isUndefined() && !Sym->isWeak())
error(File->getName() + ": relocation " +
- reloctTypeToString(Reloc.Type) +
+ relocTypeToString(Reloc.Type) +
" cannot be used againt symbol " + Sym->getName() +
"; recompile with -fPIC");
}
More information about the llvm-commits
mailing list