diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2025-01-09 18:31:57 +0900 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2025-01-09 18:33:27 +0900 |
commit | df025ebf872052c0761d44a3ef9b65e9675af8a8 (patch) | |
tree | 9b4e94583e2536546d6606270bcdf846c95e1ba2 /lld/wasm/InputChunks.cpp | |
parent | 4428c9d0b1344179f85a72e183a44796976521e3 (diff) | |
parent | bdcf47e4bcb92889665825654bb80a8bbe30379e (diff) | |
download | llvm-users/chapuni/cov/single/loop.zip llvm-users/chapuni/cov/single/loop.tar.gz llvm-users/chapuni/cov/single/loop.tar.bz2 |
Merge branch 'users/chapuni/cov/single/base' into users/chapuni/cov/single/loopusers/chapuni/cov/single/loop
Conflicts:
clang/lib/CodeGen/CoverageMappingGen.cpp
Diffstat (limited to 'lld/wasm/InputChunks.cpp')
-rw-r--r-- | lld/wasm/InputChunks.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lld/wasm/InputChunks.cpp b/lld/wasm/InputChunks.cpp index 9383dca..ccdc92f 100644 --- a/lld/wasm/InputChunks.cpp +++ b/lld/wasm/InputChunks.cpp @@ -67,7 +67,7 @@ uint32_t InputChunk::getSize() const { return ms->builder.getSize(); if (const auto *f = dyn_cast<InputFunction>(this)) { - if (config->compressRelocations && f->file) { + if (ctx.arg.compressRelocations && f->file) { return f->getCompressedSize(); } } @@ -84,7 +84,7 @@ uint32_t InputChunk::getInputSize() const { // Copy this input chunk to an mmap'ed output file and apply relocations. void InputChunk::writeTo(uint8_t *buf) const { if (const auto *f = dyn_cast<InputFunction>(this)) { - if (file && config->compressRelocations) + if (file && ctx.arg.compressRelocations) return f->writeCompressed(buf); } else if (const auto *ms = dyn_cast<SyntheticMergedChunk>(this)) { ms->builder.write(buf + outSecOff); @@ -269,7 +269,7 @@ static unsigned getRelocWidth(const WasmRelocation &rel, uint64_t value) { // This function only computes the final output size. It must be called // before getSize() is used to calculate of layout of the code section. void InputFunction::calculateSize() { - if (!file || !config->compressRelocations) + if (!file || !ctx.arg.compressRelocations) return; LLVM_DEBUG(dbgs() << "calculateSize: " << name << "\n"); @@ -365,7 +365,7 @@ bool InputChunk::generateRelocationCode(raw_ostream &os) const { LLVM_DEBUG(dbgs() << "generating runtime relocations: " << name << " count=" << relocations.size() << "\n"); - bool is64 = config->is64.value_or(false); + bool is64 = ctx.arg.is64.value_or(false); bool generated = false; unsigned opcode_ptr_const = is64 ? WASM_OPCODE_I64_CONST : WASM_OPCODE_I32_CONST; |