We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8436f5a commit d295edeCopy full SHA for d295ede
lld/wasm/InputChunks.cpp
@@ -167,15 +167,16 @@ void InputChunk::relocate(uint8_t *buf) const {
167
}
168
169
170
-static bool relocIsLive(const WasmRelocation& rel, ObjFile* file) {
+static bool relocIsLive(const WasmRelocation &rel, ObjFile *file) {
171
return rel.Type == R_WASM_TYPE_INDEX_LEB ||
172
- file->getSymbol(rel.Index)->isLive();
+ file->getSymbol(rel.Index)->isLive();
173
174
175
size_t InputChunk::getNumLiveRelocations() const {
176
size_t result = 0;
177
- for (const WasmRelocation& rel : relocations) {
178
- if (relocIsLive(rel, file)) result ++;
+ for (const WasmRelocation &rel : relocations) {
+ if (relocIsLive(rel, file))
179
+ result++;
180
181
return result;
182
0 commit comments