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 | 27aa7d259b416a9d1bf837ed2c3c11463367b11c (patch) | |
tree | 630f8ad4b1caedcf7a1bbd296957f1ab7194bc3a /tools/llvm-mc/AsmParser.cpp | |
parent | 10a907d70fb54c40eecabb889e81c79b44092221 (diff) |
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
Diffstat (limited to 'tools/llvm-mc/AsmParser.cpp')
-rw-r--r-- | tools/llvm-mc/AsmParser.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tools/llvm-mc/AsmParser.cpp b/tools/llvm-mc/AsmParser.cpp new file mode 100644 index 0000000000..abb0d35b08 --- /dev/null +++ b/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; +} |