diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-07-18 18:31:28 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-07-18 18:31:28 +0000 |
commit | 346cc61cd20c41ef15ed824d28c81f40f1b28590 (patch) | |
tree | c4859efe321a413b05e6583dc33f7940834779c9 /tools/llvm-mc/llvm-mc.cpp | |
parent | 806de357a512471d34170b7e84e57a1f0d0a0552 (diff) | |
download | external_llvm-346cc61cd20c41ef15ed824d28c81f40f1b28590.zip external_llvm-346cc61cd20c41ef15ed824d28c81f40f1b28590.tar.gz external_llvm-346cc61cd20c41ef15ed824d28c81f40f1b28590.tar.bz2 |
llvm-mc: Fix llvm-mc -as-lex.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108644 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-mc/llvm-mc.cpp')
-rw-r--r-- | tools/llvm-mc/llvm-mc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/llvm-mc/llvm-mc.cpp b/tools/llvm-mc/llvm-mc.cpp index fc8a1c5..34cf8ce 100644 --- a/tools/llvm-mc/llvm-mc.cpp +++ b/tools/llvm-mc/llvm-mc.cpp @@ -165,9 +165,9 @@ static int AsLexInput(const char *ProgName) { assert(MAI && "Unable to create target asm info!"); AsmLexer Lexer(*MAI); - + Lexer.setBuffer(SrcMgr.getMemoryBuffer(0)); + bool Error = false; - while (Lexer.Lex().isNot(AsmToken::Eof)) { switch (Lexer.getKind()) { default: |