[Lldb-commits] [PATCH] D97449: [Diagnose] Unify MCContext and LLVMContext diagnosing

Yuanfang Chen via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Mar 1 09:46:09 PST 2021


ychen added inline comments.


================
Comment at: llvm/lib/MC/MCContext.cpp:870
+    std::function<void(SMDiagnostic &, const SourceMgr *)> GetMessage) {
+  SourceMgr SM;
+  const SourceMgr *SMP = &SM;
----------------
MaskRay wrote:
> This looks a bit strange: we need to construct a fresh SourceMgr to print a diagnostic.
I've included comments to explain that.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D97449



More information about the lldb-commits mailing list