[llvm] [MC] Add .loc_label instruction (PR #99710)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 18 17:37:04 PDT 2024
================
@@ -3733,6 +3737,19 @@ bool AsmParser::parseDirectiveLoc() {
return false;
}
+/// parseDirectiveLoc
+/// ::= .loc_label label
+bool AsmParser::parseDirectiveLocLabel(SMLoc DirectiveLoc) {
+ StringRef Name;
+ DirectiveLoc = Lexer.getLoc();
+ if (parseIdentifier(Name))
+ return TokError("expected identifier");
----------------
MaskRay wrote:
no parsing error test. `rg ERR=1 llvm/test/MC/ELF` for some examples.
https://github.com/llvm/llvm-project/pull/99710
More information about the llvm-commits
mailing list