diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2019-02-15 20:49:22 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2019-02-15 20:49:22 +0000 |
| commit | 38e89f16767351c482670d10ce0a76f85fd327fb (patch) | |
| tree | 454466a911e2ff69b599d8e5c627075df7c8eabe /wasm/InputChunks.cpp | |
| parent | 774c33a182f027f50320a37542a6b47a0f9caeb3 (diff) | |
Notes
Diffstat (limited to 'wasm/InputChunks.cpp')
| -rw-r--r-- | wasm/InputChunks.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wasm/InputChunks.cpp b/wasm/InputChunks.cpp index 1145c670253c..f5884a1beea4 100644 --- a/wasm/InputChunks.cpp +++ b/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"); |
