summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit13f332cd3fcc00c7867db24784a3018aada46835 (patch)
tree0636b022b34313f22f8e36b841b935a40e9c3018 /llvm/lib/AsmParser/Parser.cpp
parent95e43ae1621bdbad248c79d3d5ace8165a68b2a0 (diff)
downloadbcm5719-llvm-13f332cd3fcc00c7867db24784a3018aada46835.tar.gz
bcm5719-llvm-13f332cd3fcc00c7867db24784a3018aada46835.zip
* Remove trailing whitespace
* Convert tabs to spaces llvm-svn: 21415
Diffstat (limited to 'llvm/lib/AsmParser/Parser.cpp')
-rw-r--r--llvm/lib/AsmParser/Parser.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/llvm/lib/AsmParser/Parser.cpp b/llvm/lib/AsmParser/Parser.cpp
index b7ece9fdc52..0111ea35df1 100644
--- a/llvm/lib/AsmParser/Parser.cpp
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud