Displaying 2 results from an estimated 2 matches for "gettargetparser".
2012 May 09
1
[LLVMdev] Directive parsing for AsmParser
...the end to the beginning of the block, like this (AsmParser::ParseStatement, AsmParser.cpp line 1225):
// Otherwise, we have a normal instruction or directive.
if (IDVal[0] == '.' && IDVal != ".") {
// Target hook for parsing target specific directives.
if (!getTargetParser().ParseDirective(ID))
return false;
.
.
.
.
}
thus allowing the target specific directives to be handled first rather then at the end.
What is your opinion regarding this change?
Kind regards
Vladimir
-------------- next part --------------
An HTML attachment was scrubbed...
URL:...
2010 Jun 21
2
[LLVMdev] MC: Object file specific parsing
...ive(ID))
+ return false;
// Look up the handler in the handler table,
bool(AsmParser::*Handler)(StringRef, SMLoc) = DirectiveMap[IDVal];
if (Handler)
return (this->*Handler)(IDVal, IDLoc);
-
+
// Target hook for parsing target specific directives.
- if (!getTargetParser().ParseDirective(ID))
+ if (!ParseTargetDirective(ID))
return false;
Warning(IDLoc, "ignoring directive for now");
@@ -801,15 +633,14 @@ bool AsmParser::ParseStatement() {
Opcode.push_back(tolower(IDVal[i]));
SmallVector<MCParsedAsmOperand*, 8> ParsedOpe...