aboutsummaryrefslogtreecommitdiffstats
path: root/lib
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
parent9dd7a87a88792c1a744160ceedf99bd2c7473591 (diff)
downloadexternal_llvm-019b63931b946a7dbf55282f4dce7d94d617c5fb.zip
external_llvm-019b63931b946a7dbf55282f4dce7d94d617c5fb.tar.gz
external_llvm-019b63931b946a7dbf55282f4dce7d94d617c5fb.tar.bz2
* 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')
-rw-r--r--lib/AsmParser/Parser.cpp16
-rw-r--r--lib/AsmParser/ParserInternals.h14
2 files changed, 15 insertions, 15 deletions
diff --git a/lib/AsmParser/Parser.cpp b/lib/AsmParser/Parser.cpp
index b7ece9f..0111ea3 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;
}
diff --git a/lib/AsmParser/ParserInternals.h b/lib/AsmParser/ParserInternals.h
index 98ea034..2096135 100644
--- a/lib/AsmParser/ParserInternals.h
+++ b/lib/AsmParser/ParserInternals.h
@@ -1,13 +1,13 @@
//===-- ParserInternals.h - Definitions internal to the parser --*- C++ -*-===//
-//
+//
// 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 header file defines the various variables that are shared among the
+// This header file defines the various variables that are shared among the
// different components of the parser...
//
//===----------------------------------------------------------------------===//
@@ -52,21 +52,21 @@ char *UnEscapeLexed(char *Buffer, bool AllowNull = false);
// ThrowException - Wrapper around the ParseException class that automatically
// fills in file line number and column number and options info.
//
-// This also helps me because I keep typing 'throw new ParseException' instead
+// This also helps me because I keep typing 'throw new ParseException' instead
// of just 'throw ParseException'... sigh...
//
static inline void ThrowException(const std::string &message,
- int LineNo = -1) {
+ int LineNo = -1) {
if (LineNo == -1) LineNo = llvmAsmlineno;
// TODO: column number in exception
throw ParseException(CurFilename, message, LineNo);
}
// ValID - Represents a reference of a definition of some sort. This may either
-// be a numeric reference or a symbolic (%var) reference. This is just a
+// be a numeric reference or a symbolic (%var) reference. This is just a
// discriminated union.
//
-// Note that I can't implement this class in a straight forward manner with
+// Note that I can't implement this class in a straight forward manner with
// constructors and stuff because it goes in a union.
//
struct ValID {