diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-02-28 12:53:08 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-02-28 12:53:08 -0500 |
| commit | 5768fcb0850335fa8b5f3dca23f1bbfca5d6efb2 (patch) | |
| tree | ccf3f503ec9ff6b1855c017e3c836d594bd9448e /deps/lld/wasm/InputChunks.cpp | |
| parent | 6bc19b437c4323f3b71ad38c5e8e9d0a54ad8d74 (diff) | |
| download | zig-5768fcb0850335fa8b5f3dca23f1bbfca5d6efb2.tar.gz zig-5768fcb0850335fa8b5f3dca23f1bbfca5d6efb2.zip | |
update embedded LLD to 8.0.0rc3
Diffstat (limited to 'deps/lld/wasm/InputChunks.cpp')
| -rw-r--r-- | deps/lld/wasm/InputChunks.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/deps/lld/wasm/InputChunks.cpp b/deps/lld/wasm/InputChunks.cpp index 1145c67025..f5884a1bee 100644 --- a/deps/lld/wasm/InputChunks.cpp +++ b/deps/lld/wasm/InputChunks.cpp @@ -23,7 +23,7 @@ using namespace llvm::support::endian; using namespace lld; using namespace lld::wasm; -static StringRef ReloctTypeToString(uint8_t RelocType) { +static StringRef reloctTypeToString(uint8_t RelocType) { switch (RelocType) { #define WASM_RELOC(NAME, REL) \ case REL: \ @@ -77,7 +77,7 @@ void InputChunk::verifyRelocTargets() const { warn("expected LEB at relocation site be 5-byte padded"); uint32_t ExpectedValue = File->calcExpectedValue(Rel); if (ExpectedValue != ExistingValue) - warn("unexpected existing value for " + ReloctTypeToString(Rel.Type) + + warn("unexpected existing value for " + reloctTypeToString(Rel.Type) + ": existing=" + Twine(ExistingValue) + " expected=" + Twine(ExpectedValue)); } @@ -103,7 +103,7 @@ void InputChunk::writeTo(uint8_t *Buf) const { 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=" << reloctTypeToString(Rel.Type) << " addend=" << Rel.Addend << " index=" << Rel.Index << " value=" << Value << " offset=" << Rel.Offset << "\n"); |
