Lines Matching refs:DiagInfo
46 AsmPrinter::SrcMgrDiagInfo *DiagInfo = in srcMgrDiagHandler() local
48 assert(DiagInfo && "Diagnostic context not passed down?"); in srcMgrDiagHandler()
51 unsigned BufNum = DiagInfo->SrcMgr.FindBufferContainingLoc(Diag.getLoc()); in srcMgrDiagHandler()
53 if (BufNum > 0 && BufNum <= DiagInfo->LocInfos.size()) in srcMgrDiagHandler()
54 LocInfo = DiagInfo->LocInfos[BufNum-1]; in srcMgrDiagHandler()
70 DiagInfo->DiagHandler(Diag, DiagInfo->DiagContext, LocCookie); in srcMgrDiagHandler()
75 if (!DiagInfo) { in addInlineAsmDiagBuffer()
76 DiagInfo = std::make_unique<SrcMgrDiagInfo>(); in addInlineAsmDiagBuffer()
79 Context.setInlineSourceManager(&DiagInfo->SrcMgr); in addInlineAsmDiagBuffer()
83 DiagInfo->DiagHandler = LLVMCtx.getInlineAsmDiagnosticHandler(); in addInlineAsmDiagBuffer()
84 DiagInfo->DiagContext = LLVMCtx.getInlineAsmDiagnosticContext(); in addInlineAsmDiagBuffer()
85 DiagInfo->SrcMgr.setDiagHandler(srcMgrDiagHandler, DiagInfo.get()); in addInlineAsmDiagBuffer()
89 SourceMgr &SrcMgr = DiagInfo->SrcMgr; in addInlineAsmDiagBuffer()
101 DiagInfo->LocInfos.resize(BufNum); in addInlineAsmDiagBuffer()
102 DiagInfo->LocInfos[BufNum - 1] = LocMDNode; in addInlineAsmDiagBuffer()
137 DiagInfo->SrcMgr.setIncludeDirs(MCOptions.IASSearchPaths); in emitInlineAsm()
140 DiagInfo->SrcMgr, OutContext, *OutStreamer, *MAI, BufNum)); in emitInlineAsm()
169 if (Res && !DiagInfo->DiagHandler) in emitInlineAsm()
573 auto &SrcMgr = DiagInfo->SrcMgr; in emitInlineAsm()