================
@@ -3394,7 +3397,46 @@ static void emitRangeList(DwarfDebug &DD, AsmPrinter 
*Asm, const Ranges &R,
       Asm->OutStreamer->emitIntValue(0, Size);
     }
 
-    for (const auto *RS : P.second) {
+    if (DD.useSplitDwarf() && UseDwarf5) {
+      // In .dwo files, we must ensure no relocations are present. For
----------------
dwblaikie wrote:

Rather than having two loops and filtering - could this be inside the 
one/pre-existing loop, and choose which encoding to use there?

https://github.com/llvm/llvm-project/pull/164812
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to