Lines Matching refs:Parser
1 //===- AsmParser.cpp - Parser for Assembly Files --------------------------===//
10 // This class implements the parser for assembly files.
120 /// \brief The concrete assembly parser instance.
141 /// ExtensionDirectiveMap - maps directive names to handler methods in parser
259 /// \brief Are macros enabled in the parser?
262 /// \brief Control a flag in the parser that enables or disables macros.
492 // Initialize the platform / file format parser.
1278 // 1. The target-specific assembly parser. Some directives are target
1280 // 2. Asm parser extensions. For example, platform-specific parsers
1281 // (like the ELF parser) register themselves as extensions.
1282 // 3. The generic directive parser implemented by this class. These are
1287 // First query the target-specific parser. It will return 'true' if it
1561 // Don't skip the rest of the line, the instruction parser is responsible for
1614 const AsmParser *Parser = static_cast<const AsmParser*>(Context);
1620 int CppHashBuf = Parser->SrcMgr.FindBufferContainingLoc(Parser->CppHashLoc);
1625 if (!Parser->SavedDiagHandler && DiagCurBuffer > 0) {
1633 if (!Parser->CppHashLineNumber ||
1634 &DiagSrcMgr != &Parser->SrcMgr ||
1636 if (Parser->SavedDiagHandler)
1637 Parser->SavedDiagHandler(Diag, Parser->SavedDiagContext);
1646 const std::string Filename = Parser->CppHashFilename;
1650 Parser->SrcMgr.FindLineNumber(Parser->CppHashLoc, CppHashBuf);
1651 int LineNo = Parser->CppHashLineNumber - 1 +
1659 if (Parser->SavedDiagHandler)
1660 Parser->SavedDiagHandler(NewDiag, Parser->SavedDiagContext);