[PATCH] D90511: [MC] Make MCStreamer aware of AsmParser's StartTokLoc

Alexander Richardson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 30 16:21:28 PDT 2020


arichardson added a comment.

This seems better like a good solution to the problem I'm trying to fix in D89787 <https://reviews.llvm.org/D89787> and I'll rebase on top of this. Not sure about the name `StartTokLocPtr` though. Maybe `CurrentParserLoc`?



================
Comment at: llvm/lib/MC/MCParser/AsmParser.cpp:1713
   int64_t LocalLabelVal = -1;
+  StartTokLoc = ID.getLoc();
   if (Lexer.is(AsmToken::HashDirective))
----------------



Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D90511/new/

https://reviews.llvm.org/D90511



More information about the llvm-commits mailing list