Lines Matching defs:DiagInfo
50 /// inline asm has an error in it. diagInfo is a pointer to the SrcMgrDiagInfo
52 static void srcMgrDiagHandler(const SMDiagnostic &Diag, void *diagInfo) {
53 SrcMgrDiagInfo *DiagInfo = static_cast<SrcMgrDiagInfo *>(diagInfo);
54 assert(DiagInfo && "Diagnostic context not passed down?");
59 if (const MDNode *LocInfo = DiagInfo->LocInfo) {
70 DiagInfo->DiagHandler(Diag, DiagInfo->DiagContext, LocCookie);
98 SrcMgrDiagInfo DiagInfo;
105 // to be invoked, getting DiagInfo passed into it.
106 DiagInfo.LocInfo = LocMDNode;
107 DiagInfo.DiagHandler = LLVMCtx.getInlineAsmDiagnosticHandler();
108 DiagInfo.DiagContext = LLVMCtx.getInlineAsmDiagnosticContext();
109 SrcMgr.setDiagHandler(srcMgrDiagHandler, &DiagInfo);