Home
last modified time | relevance | path

Searched refs:DiagInfo (Results 1 – 6 of 6) sorted by relevance

/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/AsmPrinter/
DAsmPrinterInlineAsm.cpp47 AsmPrinter::SrcMgrDiagInfo *DiagInfo = in srcMgrDiagHandler() local
49 assert(DiagInfo && "Diagnostic context not passed down?"); in srcMgrDiagHandler()
52 unsigned BufNum = DiagInfo->SrcMgr.FindBufferContainingLoc(Diag.getLoc()); in srcMgrDiagHandler()
54 if (BufNum > 0 && BufNum <= DiagInfo->LocInfos.size()) in srcMgrDiagHandler()
55 LocInfo = DiagInfo->LocInfos[BufNum-1]; in srcMgrDiagHandler()
71 DiagInfo->DiagHandler(Diag, DiagInfo->DiagContext, LocCookie); in srcMgrDiagHandler()
101 if (!DiagInfo) { in EmitInlineAsm()
102 DiagInfo = make_unique<SrcMgrDiagInfo>(); in EmitInlineAsm()
105 Context.setInlineSourceManager(&DiagInfo->SrcMgr); in EmitInlineAsm()
109 DiagInfo->DiagHandler = LLVMCtx.getInlineAsmDiagnosticHandler(); in EmitInlineAsm()
[all …]
/external/swiftshader/third_party/LLVM/lib/CodeGen/AsmPrinter/
DAsmPrinterInlineAsm.cpp50 SrcMgrDiagInfo *DiagInfo = static_cast<SrcMgrDiagInfo *>(diagInfo); in SrcMgrDiagHandler() local
51 assert(DiagInfo && "Diagnostic context not passed down?"); in SrcMgrDiagHandler()
56 if (const MDNode *LocInfo = DiagInfo->LocInfo) { in SrcMgrDiagHandler()
67 DiagInfo->DiagHandler(Diag, DiagInfo->DiagContext, LocCookie); in SrcMgrDiagHandler()
88 SrcMgrDiagInfo DiagInfo; in EmitInlineAsm() local
96 DiagInfo.LocInfo = LocMDNode; in EmitInlineAsm()
97 DiagInfo.DiagHandler = LLVMCtx.getInlineAsmDiagnosticHandler(); in EmitInlineAsm()
98 DiagInfo.DiagContext = LLVMCtx.getInlineAsmDiagnosticContext(); in EmitInlineAsm()
99 SrcMgr.setDiagHandler(SrcMgrDiagHandler, &DiagInfo); in EmitInlineAsm()
/external/llvm/lib/CodeGen/AsmPrinter/
DAsmPrinterInlineAsm.cpp55 SrcMgrDiagInfo *DiagInfo = static_cast<SrcMgrDiagInfo *>(diagInfo); in srcMgrDiagHandler() local
56 assert(DiagInfo && "Diagnostic context not passed down?"); in srcMgrDiagHandler()
61 if (const MDNode *LocInfo = DiagInfo->LocInfo) { in srcMgrDiagHandler()
72 DiagInfo->DiagHandler(Diag, DiagInfo->DiagContext, LocCookie); in srcMgrDiagHandler()
103 SrcMgrDiagInfo DiagInfo; in EmitInlineAsm() local
111 DiagInfo.LocInfo = LocMDNode; in EmitInlineAsm()
112 DiagInfo.DiagHandler = LLVMCtx.getInlineAsmDiagnosticHandler(); in EmitInlineAsm()
113 DiagInfo.DiagContext = LLVMCtx.getInlineAsmDiagnosticContext(); in EmitInlineAsm()
114 SrcMgr.setDiagHandler(srcMgrDiagHandler, &DiagInfo); in EmitInlineAsm()
/external/clang/lib/Basic/
DDiagnosticIDs.cpp256 std::vector<DiagDesc> DiagInfo; member in clang::diag::CustomDiagInfo
263 assert(DiagID - DIAG_UPPER_LIMIT < DiagInfo.size() && in getDescription()
265 return DiagInfo[DiagID-DIAG_UPPER_LIMIT].second; in getDescription()
270 assert(DiagID - DIAG_UPPER_LIMIT < DiagInfo.size() && in getLevel()
272 return DiagInfo[DiagID-DIAG_UPPER_LIMIT].first; in getLevel()
284 unsigned ID = DiagInfo.size()+DIAG_UPPER_LIMIT; in getOrCreateDiagID()
286 DiagInfo.push_back(D); in getOrCreateDiagID()
/external/clang/lib/Sema/
DSema.cpp982 Diagnostic DiagInfo(&Diags); in EmitCurrentDiagnostic() local
983 (*Info)->addSFINAEDiagnostic(DiagInfo.getLocation(), in EmitCurrentDiagnostic()
984 PartialDiagnostic(DiagInfo, Context.getDiagAllocator())); in EmitCurrentDiagnostic()
1007 Diagnostic DiagInfo(&Diags); in EmitCurrentDiagnostic() local
1008 (*Info)->addSFINAEDiagnostic(DiagInfo.getLocation(), in EmitCurrentDiagnostic()
1009 PartialDiagnostic(DiagInfo, Context.getDiagAllocator())); in EmitCurrentDiagnostic()
1029 Diagnostic DiagInfo(&Diags); in EmitCurrentDiagnostic() local
1030 (*Info)->addSuppressedDiagnostic(DiagInfo.getLocation(), in EmitCurrentDiagnostic()
1031 PartialDiagnostic(DiagInfo, Context.getDiagAllocator())); in EmitCurrentDiagnostic()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/CodeGen/
DAsmPrinter.h176 mutable std::unique_ptr<SrcMgrDiagInfo> DiagInfo; variable