Skip to content

Commit 106f91c

Browse files
resolve comments
1 parent 0971659 commit 106f91c

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

lld/ELF/InputFiles.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1807,8 +1807,7 @@ void BitcodeFile::parseLazy() {
18071807
} else {
18081808
// Keep copies of per-module undefined symbols for LTO::GlobalResolutions
18091809
// usage.
1810-
[[maybe_unused]] StringRef SymbolRef =
1811-
unique_saver().save(irSym.getName());
1810+
unique_saver().save(irSym.getName());
18121811
}
18131812
}
18141813

llvm/include/llvm/LTO/LTO.h

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -350,11 +350,6 @@ class LTO {
350350
DenseMap<GlobalValue::GUID, StringRef> PrevailingModuleForGUID;
351351
} ThinLTO;
352352

353-
std::unique_ptr<llvm::BumpPtrAllocator> Alloc;
354-
355-
// Symbol saver for global resolution map.
356-
std::unique_ptr<llvm::StringSaver> GlobalResolutionSymbolSaver;
357-
358353
// The global resolution for a particular (mangled) symbol name. This is in
359354
// particular necessary to track whether each symbol can be internalized.
360355
// Because any input file may introduce a new cross-partition reference, we
@@ -412,6 +407,12 @@ class LTO {
412407
};
413408
};
414409

410+
// GlobalResolutionSymbolSaver allocator.
411+
std::unique_ptr<llvm::BumpPtrAllocator> Alloc;
412+
413+
// Symbol saver for global resolution map.
414+
std::unique_ptr<llvm::StringSaver> GlobalResolutionSymbolSaver;
415+
415416
// Global mapping from mangled symbol names to resolutions.
416417
// Make this an unique_ptr to guard against accessing after it has been reset
417418
// (to reduce memory after we're done with it).

0 commit comments

Comments
 (0)