[clang] [CodeGen][CIR] Split out Backend Diags to utils, impl CIR error-attr (PR #225966)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 29 13:51:48 PDT 2026
================
@@ -91,55 +81,9 @@ class BackendConsumer : public ASTConsumer {
// Links each entry in LinkModules into our module. Returns true on error.
bool LinkInModules(llvm::Module *M);
-
- /// Get the best possible source location to represent a diagnostic that
- /// may have associated debug info.
- const FullSourceLoc getBestLocationFromDebugLoc(
- const llvm::DiagnosticInfoWithLocationBase &D,
- bool &BadDebugInfo, StringRef &Filename,
- unsigned &Line, unsigned &Column) const;
-
- std::optional<FullSourceLoc> getFunctionSourceLocation(
- const llvm::Function &F) const;
-
- void DiagnosticHandlerImpl(const llvm::DiagnosticInfo &DI);
- /// Specialized handler for InlineAsm diagnostic.
- /// \return True if the diagnostic has been successfully reported, false
----------------
andykaylor wrote:
These comments were dropped in the refactor. Is that important?
https://github.com/llvm/llvm-project/pull/225966
More information about the cfe-commits
mailing list