diff options
author | Misha Brukman <brukman+llvm@gmail.com> | 2009-01-02 22:46:48 +0000 |
---|---|---|
committer | Misha Brukman <brukman+llvm@gmail.com> | 2009-01-02 22:46:48 +0000 |
commit | 9ea4034e007a83c778cd306ea66481be1317a51b (patch) | |
tree | 6c36cb8f2a79e34bc756e732708f0ec5e88c4e53 /lib/AsmParser/LLLexer.cpp | |
parent | 27c1e89a4b82b205cbc11fd2f18dcb9e5f033dfb (diff) |
Down with trailing whitespace!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61594 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AsmParser/LLLexer.cpp')
-rw-r--r-- | lib/AsmParser/LLLexer.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/AsmParser/LLLexer.cpp b/lib/AsmParser/LLLexer.cpp index f858ce55e9..b8fb05c889 100644 --- a/lib/AsmParser/LLLexer.cpp +++ b/lib/AsmParser/LLLexer.cpp @@ -25,20 +25,20 @@ using namespace llvm; bool LLLexer::Error(LocTy ErrorLoc, const std::string &Msg) const { // Scan backward to find the start of the line. const char *LineStart = ErrorLoc; - while (LineStart != CurBuf->getBufferStart() && + while (LineStart != CurBuf->getBufferStart() && LineStart[-1] != '\n' && LineStart[-1] != '\r') --LineStart; // Get the end of the line. const char *LineEnd = ErrorLoc; - while (LineEnd != CurBuf->getBufferEnd() && + while (LineEnd != CurBuf->getBufferEnd() && LineEnd[0] != '\n' && LineEnd[0] != '\r') ++LineEnd; - + unsigned LineNo = 1; for (const char *FP = CurBuf->getBufferStart(); FP != ErrorLoc; ++FP) if (*FP == '\n') ++LineNo; - std::string LineContents(LineStart, LineEnd); + std::string LineContents(LineStart, LineEnd); ErrorInfo.setError(Msg, LineNo, ErrorLoc-LineStart, LineContents); return true; } @@ -519,7 +519,7 @@ lltok::Kind LLLexer::LexIdentifier() { KEYWORD(sge); KEYWORD(ult); KEYWORD(ugt); KEYWORD(ule); KEYWORD(uge); KEYWORD(oeq); KEYWORD(one); KEYWORD(olt); KEYWORD(ogt); KEYWORD(ole); KEYWORD(oge); KEYWORD(ord); KEYWORD(uno); KEYWORD(ueq); KEYWORD(une); - + KEYWORD(x); #undef KEYWORD |