stub out parser for asm files. Change invariant on lexer to always
authorChris Lattner <sabre@nondot.org>
Sun, 21 Jun 2009 20:16:42 +0000 (20:16 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 21 Jun 2009 20:16:42 +0000 (20:16 +0000)
commit27aa7d259b416a9d1bf837ed2c3c11463367b11c
tree630f8ad4b1caedcf7a1bbd296957f1ab7194bc3a
parent10a907d70fb54c40eecabb889e81c79b44092221
stub out parser for asm files.  Change invariant on lexer to always
print its error message when it returns an asmtok::Error token.
Compute a proper error code for llvm-mc in 'lex' mode.  Add new
-as-lex option to enable lexing mode (vs parsing mode).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73859 91177308-0d34-0410-b5e6-96231b3b80d8
tools/llvm-mc/AsmLexer.cpp
tools/llvm-mc/AsmParser.cpp [new file with mode: 0644]
tools/llvm-mc/AsmParser.h [new file with mode: 0644]
tools/llvm-mc/CMakeLists.txt
tools/llvm-mc/llvm-mc.cpp