diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-06-21 20:16:42 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-06-21 20:16:42 +0000 |
| commit | b01334533857e4dce90c1d531510ab0d2d31dd9b (patch) | |
| tree | 7961d9bbea04277ea854739476d8eb3d0757e495 /llvm/tools/llvm-mc/AsmParser.cpp | |
| parent | 419a97491a8c2479dc23afe8189b67b094950daa (diff) | |
| download | bcm5719-llvm-b01334533857e4dce90c1d531510ab0d2d31dd9b.tar.gz bcm5719-llvm-b01334533857e4dce90c1d531510ab0d2d31dd9b.zip | |
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).
llvm-svn: 73859
Diffstat (limited to 'llvm/tools/llvm-mc/AsmParser.cpp')
| -rw-r--r-- | llvm/tools/llvm-mc/AsmParser.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/llvm/tools/llvm-mc/AsmParser.cpp b/llvm/tools/llvm-mc/AsmParser.cpp new file mode 100644 index 00000000000..abb0d35b086 --- /dev/null +++ b/llvm/tools/llvm-mc/AsmParser.cpp @@ -0,0 +1,19 @@ +//===- AsmParser.cpp - Parser for Assembly Files --------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This class implements the parser for assembly files. +// +//===----------------------------------------------------------------------===// + +#include "AsmParser.h" +using namespace llvm; + +bool AsmParser::Run() { + return false; +} |

