[lld] [LLD] Implement --enable-non-contiguous-regions (PR #90007)

Peter Smith via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 30 10:28:24 PDT 2024


================
@@ -1066,8 +1126,16 @@ void LinkerScript::assignOffsets(OutputSection *sec) {
     // Handle a single input section description command.
     // It calculates and assigns the offsets for each section and also
     // updates the output section size.
-    for (InputSection *isec : cast<InputSectionDescription>(cmd)->sections) {
+
+    DenseSet<InputSection *> spills;
----------------
smithp35 wrote:

I can't see this DenseSet being used? If I've not missed something, can it be removed?

https://github.com/llvm/llvm-project/pull/90007


More information about the llvm-commits mailing list