akhuang added inline comments.

================
Comment at: llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp:1145-1149
+    bool Deref = false;
+    if (VI.Expr) {
+      if (!VI.Expr->extractIfOffset(ExprOffset, Deref))
         continue;
+    }
----------------
rnk wrote:
> I see. I thought this code was using the stuff I added in 
> `DbgVariableLocation::extractFromMachineInstruction`. Hm.
> 
> In practice, do you actually see DIExpression offsets here? I think maybe we 
> should just special case a single DW_OP_deref expression, since that's what 
> we get at O0.
That should work


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D63361/new/

https://reviews.llvm.org/D63361



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to