summaryrefslogtreecommitdiff
path: root/lib/AsmParser/Parser.cpp
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2005-04-21 21:10:11 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2005-04-21 21:10:11 +0000
commit019b63931b946a7dbf55282f4dce7d94d617c5fb (patch)
treec06c42d77e1aea7cd1af596df82042a876a12e95 /lib/AsmParser/Parser.cpp
parent9dd7a87a88792c1a744160ceedf99bd2c7473591 (diff)
downloadllvm-019b63931b946a7dbf55282f4dce7d94d617c5fb.tar.gz
llvm-019b63931b946a7dbf55282f4dce7d94d617c5fb.tar.bz2
llvm-019b63931b946a7dbf55282f4dce7d94d617c5fb.tar.xz
* Remove trailing whitespace
* Convert tabs to spaces git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21415 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AsmParser/Parser.cpp')
-rw-r--r--lib/AsmParser/Parser.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/AsmParser/Parser.cpp b/lib/AsmParser/Parser.cpp
index b7ece9fdc5..0111ea35df 100644
--- a/lib/AsmParser/Parser.cpp
+++ b/lib/AsmParser/Parser.cpp
@@ -1,10 +1,10 @@
//===- Parser.cpp - Main dispatch module for the Parser library -------------===
-//
+//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
-//
+//
//===----------------------------------------------------------------------===//
//
// This library implements the functionality defined in llvm/assembly/parser.h
@@ -49,24 +49,24 @@ Module *llvm::ParseAssemblyFile(const std::string &Filename) {
ParseException::ParseException(const std::string &filename,
- const std::string &message,
- int lineNo, int colNo)
+ const std::string &message,
+ int lineNo, int colNo)
: Filename(filename), Message(message) {
LineNo = lineNo; ColumnNo = colNo;
}
-ParseException::ParseException(const ParseException &E)
+ParseException::ParseException(const ParseException &E)
: Filename(E.Filename), Message(E.Message) {
LineNo = E.LineNo;
ColumnNo = E.ColumnNo;
}
// Includes info from options
-const std::string ParseException::getMessage() const {
+const std::string ParseException::getMessage() const {
std::string Result;
char Buffer[10];
- if (Filename == "-")
+ if (Filename == "-")
Result += "<stdin>";
else
Result += Filename;
@@ -79,6 +79,6 @@ const std::string ParseException::getMessage() const {
Result += std::string(",") + Buffer;
}
}
-
+
return Result + ": " + Message;
}