[llvm] [MC] Add .loc_label instruction (PR #99710)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 21 01:49:13 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");
----------------
alx32 wrote:
Added error test for syntax errors and duplicate label.
https://github.com/llvm/llvm-project/pull/99710
More information about the llvm-commits
mailing list