[PATCH] D70753: hwasan: add tag_offset DWARF attribute to optimized debug info

Adrian Prantl via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 2 11:29:22 PST 2019


aprantl added inline comments.


================
Comment at: llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h:121
   unsigned DebugLocListIndex = ~0u;
+  // DW_OP_LLVM_tag_offset value from DebugLocs.
+  Optional<uint8_t> DebugLocListTagOffset;
----------------
///


================
Comment at: llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp:1049
+      NewOps.append(OldExpr->elements_begin(), OldExpr->elements_end());
+      DIExpression *NewExpr = DIExpression::get(*C, NewOps);
       DDI->setArgOperand(2, MetadataAsValue::get(*C, NewExpr));
----------------
DIExpression::prependOpcodes()?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D70753





More information about the llvm-commits mailing list