Home | History | Annotate | Download | only in AsmPrinter

Lines Matching refs:DiagInfo

52 /// inline asm has an error in it.  diagInfo is a pointer to the SrcMgrDiagInfo
54 static void srcMgrDiagHandler(const SMDiagnostic &Diag, void *diagInfo) {
55 SrcMgrDiagInfo *DiagInfo = static_cast<SrcMgrDiagInfo *>(diagInfo);
56 assert(DiagInfo && "Diagnostic context not passed down?");
61 if (const MDNode *LocInfo = DiagInfo->LocInfo) {
72 DiagInfo->DiagHandler(Diag, DiagInfo->DiagContext, LocCookie);
103 SrcMgrDiagInfo DiagInfo;
110 // to be invoked, getting DiagInfo passed into it.
111 DiagInfo.LocInfo = LocMDNode;
112 DiagInfo.DiagHandler = LLVMCtx.getInlineAsmDiagnosticHandler();
113 DiagInfo.DiagContext = LLVMCtx.getInlineAsmDiagnosticContext();
114 SrcMgr.setDiagHandler(srcMgrDiagHandler, &DiagInfo);