[PATCH] D97449: [Diagnose] Unify MCContext and LLVMContext diagnosing
Yuanfang Chen via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 1 13:15:03 PST 2021
ychen added inline comments.
================
Comment at: clang/include/clang/Basic/DiagnosticFrontendKinds.td:22
def note_fe_inline_asm_here : Note<"instantiated into assembly here">;
+def err_fe_source_mgr : Error<"%0">, CatSourceMgr;
+def warn_fe_source_mgr : Warning<"%0">, CatSourceMgr, InGroup<BackendSourceMgr>;
----------------
MaskRay wrote:
> These seem unused.
These `.td` file changes are used by `ComputeDiagID(DI.getKind(), source_mgr, DiagID);` down below. Basically it makes non-inlineasm SourceMgr error its own diagnose category.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D97449/new/
https://reviews.llvm.org/D97449
More information about the cfe-commits
mailing list