Add a comment consumer mechanism to MCAsmLexer
authorOliver Stannard <oliver.stannard@arm.com>
Thu, 8 Dec 2016 10:31:21 +0000 (10:31 +0000)
committerOliver Stannard <oliver.stannard@arm.com>
Thu, 8 Dec 2016 10:31:21 +0000 (10:31 +0000)
commit68e7c21ca0d3fc26ccbefe4214ff4c1b34484c4f
tree0b5415e412f72fbb1047b3390412b99835d932ef
parentd9c53710d55cc583f94e3cb439275b4fca99f50d
Add a comment consumer mechanism to MCAsmLexer

This allows clients to register an AsmCommentConsumer with the MCAsmLexer,
which receives a callback each time a comment is parsed.

Differential Revision: https://reviews.llvm.org/D27511

llvm-svn: 289036
llvm/include/llvm/MC/MCParser/MCAsmLexer.h
llvm/lib/MC/MCParser/AsmLexer.cpp
llvm/lib/MC/MCParser/MCAsmLexer.cpp