Skip to content
Commit 88186c49 authored by Saleem Abdulrasool's avatar Saleem Abdulrasool
Browse files

AsmParser: add support for .end directive



The .end directive indicates the end of the file.  No further instructions are
processed after a .end directive is encountered.

One potential (glaringly obvious) optimisation that could be pursued here is to
extend MCAsmParser with a DiscardRemainder method to avoid processing lexemes to
the end of the file.  It was unclear at this point if that would be worth
adding, and could easily be added in a follow on change.

Signed-off-by: default avatarSaleem Abdulrasool <compnerd@compnerd.org>
llvm-svn: 197547
parent 6b32f1ec
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment