author | Saleem Abdulrasool <compnerd@compnerd.org> | |
Wed, 18 Dec 2013 02:53:03 +0000 (02:53 +0000) | ||
committer | Saleem Abdulrasool <compnerd@compnerd.org> | |
Wed, 18 Dec 2013 02:53:03 +0000 (02:53 +0000) | ||
commit | 5a445395de7a5481ed8a5d1768aa9e3db83bd18a | |
tree | af6fc533654e1afecb6a3a16556a05e522011867 | tree | snapshot (tar.xz tar.gz zip) |
parent | 2cb3295a536957f0a191660a692e84e4102054a6 | commit | diff |
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: Saleem Abdulrasool <compnerd@compnerd.org>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197547 91177308-0d34-0410-b5e6-96231b3b80d8
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: Saleem Abdulrasool <compnerd@compnerd.org>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197547 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/MCParser/AsmParser.cpp | diff | blob | history | |
test/MC/AsmParser/directive_end-2.s | [new file with mode: 0644] | blob |
test/MC/AsmParser/directive_end.s | [new file with mode: 0644] | blob |