[PATCH] D94202: Preserve the lexical order of global variables during llvm-link merge
Aditya Kumar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 16 10:01:14 PST 2021
hiraditya added inline comments.
================
Comment at: llvm/lib/Linker/IRMover.cpp:1477
+ // global variable.
+ auto *NewV = Mapper.mapValue(*GV);
+ if (InitCnst) {
----------------
Can we move this inside the condition below?
================
Comment at: llvm/lib/Linker/IRMover.cpp:1508
+
+ unsigned Size = OldElements.size();
+ while (Size > 0) {
----------------
use `erase`
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D94202/new/
https://reviews.llvm.org/D94202
More information about the llvm-commits
mailing list