[llvm-commits] CVS: llvm/lib/Support/Annotation.cpp CommandLine.cpp Compressor.cpp Debug.cpp FileUtilities.cpp IsInf.cpp IsNAN.cpp PluginLoader.cpp SlowOperationInformer.cpp Statistic.cpp StringExtras.cpp SystemUtils.cpp Timer.cpp ToolRunner.cpp
Misha Brukman
brukman at cs.uiuc.edu
Thu Apr 21 15:52:17 PDT 2005
Changes in directory llvm/lib/Support:
Annotation.cpp updated: 1.16 -> 1.17
CommandLine.cpp updated: 1.58 -> 1.59
Compressor.cpp updated: 1.15 -> 1.16
Debug.cpp updated: 1.6 -> 1.7
FileUtilities.cpp updated: 1.44 -> 1.45
IsInf.cpp updated: 1.5 -> 1.6
IsNAN.cpp updated: 1.3 -> 1.4
PluginLoader.cpp updated: 1.13 -> 1.14
SlowOperationInformer.cpp updated: 1.5 -> 1.6
Statistic.cpp updated: 1.15 -> 1.16
StringExtras.cpp updated: 1.2 -> 1.3
SystemUtils.cpp updated: 1.40 -> 1.41
Timer.cpp updated: 1.44 -> 1.45
ToolRunner.cpp updated: 1.41 -> 1.42
---
Log message:
Remove trailing whitespace
---
Diffs of the changes: (+126 -126)
Annotation.cpp | 10 +++---
CommandLine.cpp | 76 +++++++++++++++++++++++-----------------------
Compressor.cpp | 54 ++++++++++++++++----------------
Debug.cpp | 4 +-
FileUtilities.cpp | 12 +++----
IsInf.cpp | 6 +--
IsNAN.cpp | 6 +--
PluginLoader.cpp | 4 +-
SlowOperationInformer.cpp | 6 +--
Statistic.cpp | 8 ++--
StringExtras.cpp | 8 ++--
SystemUtils.cpp | 8 ++--
Timer.cpp | 14 ++++----
ToolRunner.cpp | 36 ++++++++++-----------
14 files changed, 126 insertions(+), 126 deletions(-)
Index: llvm/lib/Support/Annotation.cpp
diff -u llvm/lib/Support/Annotation.cpp:1.16 llvm/lib/Support/Annotation.cpp:1.17
--- llvm/lib/Support/Annotation.cpp:1.16 Mon Nov 8 22:27:19 2004
+++ llvm/lib/Support/Annotation.cpp Thu Apr 21 17:52:05 2005
@@ -1,10 +1,10 @@
//===-- Annotation.cpp - Implement the Annotation Classes -----------------===//
-//
+//
// 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 file implements the AnnotationManager class.
@@ -67,7 +67,7 @@
void *Data) {
AnnotationID Result(getID(Name));
registerAnnotationFactory(Result, Fact, Data);
- return Result;
+ return Result;
}
// getName - This function is especially slow, but that's okay because it should
@@ -82,7 +82,7 @@
}
// registerAnnotationFactory - This method is used to register a callback
-// function used to create an annotation on demand if it is needed by the
+// function used to create an annotation on demand if it is needed by the
// Annotable::findOrCreateAnnotation method.
//
void AnnotationManager::registerAnnotationFactory(AnnotationID ID, AnnFactory F,
@@ -96,7 +96,7 @@
// createAnnotation - Create an annotation of the specified ID for the
// specified object, using a register annotation creation function.
//
-Annotation *AnnotationManager::createAnnotation(AnnotationID ID,
+Annotation *AnnotationManager::createAnnotation(AnnotationID ID,
const Annotable *Obj) {
FactMapType::iterator I = getFactMap().find(ID.ID);
if (I == getFactMap().end()) return 0;
Index: llvm/lib/Support/CommandLine.cpp
diff -u llvm/lib/Support/CommandLine.cpp:1.58 llvm/lib/Support/CommandLine.cpp:1.59
--- llvm/lib/Support/CommandLine.cpp:1.58 Mon Feb 14 13:17:29 2005
+++ llvm/lib/Support/CommandLine.cpp Thu Apr 21 17:52:05 2005
@@ -1,10 +1,10 @@
//===-- CommandLine.cpp - Command line parser implementation --------------===//
-//
+//
// 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 class implements a command line argument processor that is useful when
@@ -68,7 +68,7 @@
static void AddArgument(const char *ArgName, Option *Opt) {
if (getOption(ArgName)) {
- std::cerr << ProgramName << ": CommandLine Error: Argument '"
+ std::cerr << ProgramName << ": CommandLine Error: Argument '"
<< ArgName << "' defined more than once!\n";
} else {
// Add argument to the argument map!
@@ -78,7 +78,7 @@
// RemoveArgument - It's possible that the argument is no longer in the map if
// options have already been processed and the map has been deleted!
-//
+//
static void RemoveArgument(const char *ArgName, Option *Opt) {
if(getOpts().empty()) return;
@@ -107,15 +107,15 @@
break;
case ValueDisallowed:
if (*Value != 0)
- return Handler->error(" does not allow a value! '" +
+ return Handler->error(" does not allow a value! '" +
std::string(Value) + "' specified.");
break;
- case ValueOptional:
+ case ValueOptional:
break;
- default:
- std::cerr << ProgramName
- << ": Bad ValueMask flag! CommandLine usage error:"
- << Handler->getValueExpectedFlag() << "\n";
+ default:
+ std::cerr << ProgramName
+ << ": Bad ValueMask flag! CommandLine usage error:"
+ << Handler->getValueExpectedFlag() << "\n";
abort();
break;
}
@@ -124,7 +124,7 @@
return Handler->addOccurrence(i, ArgName, Value);
}
-static bool ProvidePositionalOption(Option *Handler, const std::string &Arg,
+static bool ProvidePositionalOption(Option *Handler, const std::string &Arg,
int i) {
int Dummy = i;
return ProvideOption(Handler, Handler->ArgStr, Arg.c_str(), 0, 0, Dummy);
@@ -147,7 +147,7 @@
//
static Option *getOptionPred(std::string Name, unsigned &Length,
bool (*Pred)(const Option*)) {
-
+
Option *Op = getOption(Name);
if (Op && Pred(Op)) {
Length = Name.length();
@@ -236,7 +236,7 @@
// Check args.
assert(progName && "Program name not specified");
assert(envVar && "Environment variable name missing");
-
+
// Get the environment variable they want us to parse options out of.
const char *envValue = getenv (envVar);
if (!envValue)
@@ -265,7 +265,7 @@
/// that as well.
static Option *LookupOption(const char *&Arg, const char *&Value) {
while (*Arg == '-') ++Arg; // Eat leading dashes
-
+
const char *ArgEnd = Arg;
while (*ArgEnd && *ArgEnd != '=')
++ArgEnd; // Scan till end of argument name...
@@ -273,7 +273,7 @@
Value = ArgEnd;
if (*Value) // If we have an equals sign...
++Value; // Advance to value...
-
+
if (*Arg == 0) return 0;
// Look up the option.
@@ -366,7 +366,7 @@
// All of the positional arguments have been fulfulled, give the rest to
// the consume after option... if it's specified...
//
- if (PositionalVals.size() >= NumPositionalRequired &&
+ if (PositionalVals.size() >= NumPositionalRequired &&
ConsumeAfterOpt != 0) {
for (++i; i < argc; ++i)
PositionalVals.push_back(std::make_pair(argv[i],i));
@@ -402,7 +402,7 @@
if (RealName.size() > 1) {
unsigned Length = 0;
Option *PGOpt = getOptionPred(RealName, Length, isPrefixedOrGrouping);
-
+
// If the option is a prefixed option, then the value is simply the
// rest of the name... so fall through to later processing, by
// setting up the argument name flags and value fields.
@@ -415,13 +415,13 @@
} else if (PGOpt) {
// This must be a grouped option... handle them now.
assert(isGrouping(PGOpt) && "Broken getOptionPred!");
-
+
do {
// Move current arg name out of RealName into RealArgName...
std::string RealArgName(RealName.begin(),
RealName.begin() + Length);
RealName.erase(RealName.begin(), RealName.begin() + Length);
-
+
// Because ValueRequired is an invalid flag for grouped arguments,
// we don't need to pass argc/argv in...
//
@@ -430,11 +430,11 @@
int Dummy;
ErrorParsing |= ProvideOption(PGOpt, RealArgName.c_str(),
"", 0, 0, Dummy);
-
+
// Get the next grouping option...
PGOpt = getOptionPred(RealName, Length, isGrouping);
} while (PGOpt && Length != RealName.size());
-
+
Handler = PGOpt; // Ate all of the options.
}
}
@@ -473,13 +473,13 @@
// active one...
if (Handler->getFormattingFlag() == cl::Positional)
ActivePositionalArg = Handler;
- else
+ else
ErrorParsing |= ProvideOption(Handler, ArgName, Value, argc, argv, i);
}
// Check and handle positional arguments now...
if (NumPositionalRequired > PositionalVals.size()) {
- std::cerr << ProgramName
+ std::cerr << ProgramName
<< ": Not enough positional command line arguments specified!\n"
<< "Must specify at least " << NumPositionalRequired
<< " positional arguments: See: " << argv[0] << " --help\n";
@@ -491,7 +491,7 @@
unsigned ValNo = 0, NumVals = PositionalVals.size();
for (unsigned i = 0, e = PositionalOpts.size(); i != e; ++i) {
if (RequiresValue(PositionalOpts[i])) {
- ProvidePositionalOption(PositionalOpts[i], PositionalVals[ValNo].first,
+ ProvidePositionalOption(PositionalOpts[i], PositionalVals[ValNo].first,
PositionalVals[ValNo].second);
ValNo++;
--NumPositionalRequired; // We fulfilled our duty...
@@ -542,7 +542,7 @@
PositionalVals[ValNo].second);
ValNo++;
}
-
+
// Handle over all of the rest of the arguments to the
// cl::ConsumeAfter command line option...
for (; ValNo != PositionalVals.size(); ++ValNo)
@@ -552,7 +552,7 @@
}
// Loop over args and make sure all required args are specified!
- for (std::map<std::string, Option*>::iterator I = Opts.begin(),
+ for (std::map<std::string, Option*>::iterator I = Opts.begin(),
E = Opts.end(); I != E; ++I) {
switch (I->second->getNumOccurrencesFlag()) {
case Required:
@@ -688,7 +688,7 @@
return Len + 6;
}
-// printOptionInfo - Print out information about this option. The
+// printOptionInfo - Print out information about this option. The
// to-be-maintained width is specified.
//
void basic_parser_impl::printOptionInfo(const Option &O,
@@ -709,7 +709,7 @@
//
bool parser<bool>::parse(Option &O, const char *ArgName,
const std::string &Arg, bool &Value) {
- if (Arg == "" || Arg == "true" || Arg == "TRUE" || Arg == "True" ||
+ if (Arg == "" || Arg == "true" || Arg == "TRUE" || Arg == "True" ||
Arg == "1") {
Value = true;
} else if (Arg == "false" || Arg == "FALSE" || Arg == "False" || Arg == "0") {
@@ -727,7 +727,7 @@
const std::string &Arg, int &Value) {
char *End;
Value = (int)strtol(Arg.c_str(), &End, 0);
- if (*End != 0)
+ if (*End != 0)
return O.error(": '" + Arg + "' value invalid for integer argument!");
return false;
}
@@ -753,7 +753,7 @@
const char *ArgStart = Arg.c_str();
char *End;
Value = strtod(ArgStart, &End);
- if (*End != 0)
+ if (*End != 0)
return O.error(": '" +Arg+ "' value invalid for floating point argument!");
return false;
}
@@ -808,7 +808,7 @@
}
}
-// printOptionInfo - Print out information about this option. The
+// printOptionInfo - Print out information about this option. The
// to-be-maintained width is specified.
//
void generic_parser_base::printOptionInfo(const Option &O,
@@ -825,7 +825,7 @@
}
} else {
if (O.HelpStr[0])
- std::cerr << " " << O.HelpStr << "\n";
+ std::cerr << " " << O.HelpStr << "\n";
for (unsigned i = 0, e = getNumOptions(); i != e; ++i) {
unsigned L = std::strlen(getOption(i));
std::cerr << " -" << getOption(i) << std::string(GlobalWidth-L-8, ' ')
@@ -867,7 +867,7 @@
copy(getOpts().begin(), getOpts().end(), std::back_inserter(Options));
// Eliminate Hidden or ReallyHidden arguments, depending on ShowHidden
- Options.erase(std::remove_if(Options.begin(), Options.end(),
+ Options.erase(std::remove_if(Options.begin(), Options.end(),
std::ptr_fun(ShowHidden ? isReallyHidden : isHidden)),
Options.end());
@@ -928,7 +928,7 @@
public:
void operator=(bool OptionWasSpecified) {
if (OptionWasSpecified) {
- std::cerr << "Low Level Virtual Machine (" << PACKAGE_NAME << ") "
+ std::cerr << "Low Level Virtual Machine (" << PACKAGE_NAME << ") "
<< PACKAGE_VERSION << " (see http://llvm.cs.uiuc.edu/)\n";
getOpts().clear(); // Don't bother making option dtors remove from map.
exit(1);
@@ -943,7 +943,7 @@
HelpPrinter NormalPrinter(false);
HelpPrinter HiddenPrinter(true);
-cl::opt<HelpPrinter, true, parser<bool> >
+cl::opt<HelpPrinter, true, parser<bool> >
HOp("help", cl::desc("display available options (--help-hidden for more)"),
cl::location(NormalPrinter), cl::ValueDisallowed);
@@ -954,7 +954,7 @@
// Define the --version option that prints out the LLVM version for the tool
VersionPrinter VersionPrinterInstance;
cl::opt<VersionPrinter, true, parser<bool> >
-VersOp("version", cl::desc("display the version"),
+VersOp("version", cl::desc("display the version"),
cl::location(VersionPrinterInstance), cl::ValueDisallowed);
@@ -962,10 +962,10 @@
// Utility function for printing the help message.
void cl::PrintHelpMessage() {
- // This looks weird, but it actually prints the help message. The
+ // This looks weird, but it actually prints the help message. The
// NormalPrinter variable is a HelpPrinter and the help gets printed when
// its operator= is invoked. That's because the "normal" usages of the
- // help printer is to be assigned true/false depending on whether the
+ // help printer is to be assigned true/false depending on whether the
// --help option was given or not. Since we're circumventing that we have
// to make it look like --help was given, so we assign true.
NormalPrinter = true;
Index: llvm/lib/Support/Compressor.cpp
diff -u llvm/lib/Support/Compressor.cpp:1.15 llvm/lib/Support/Compressor.cpp:1.16
--- llvm/lib/Support/Compressor.cpp:1.15 Sat Jan 29 17:29:55 2005
+++ llvm/lib/Support/Compressor.cpp Thu Apr 21 17:52:05 2005
@@ -1,10 +1,10 @@
//===- lib/Support/Compressor.cpp -------------------------------*- C++ -*-===//
-//
+//
// The LLVM Compiler Infrastructure
//
-// This file was developed by Reid Spencer and is distributed under the
+// This file was developed by Reid Spencer and is distributed under the
// University of Illinois Open Source License. See LICENSE.TXT for details.
-//
+//
//===----------------------------------------------------------------------===//
//
// This file implements the llvm::Compressor class, an abstraction for memory
@@ -26,7 +26,7 @@
COMP_TYPE_BZIP2 = '2',
};
-static int getdata(char*& buffer, size_t &size,
+static int getdata(char*& buffer, size_t &size,
llvm::Compressor::OutputDataCallback* cb, void* context) {
buffer = 0;
size = 0;
@@ -36,7 +36,7 @@
return result;
}
-static int getdata_uns(char*& buffer, unsigned &size,
+static int getdata_uns(char*& buffer, unsigned &size,
llvm::Compressor::OutputDataCallback* cb, void* context) {
size_t SizeOut;
int Res = getdata(buffer, SizeOut, cb, context);
@@ -45,7 +45,7 @@
}
//===----------------------------------------------------------------------===//
-//=== NULLCOMP - a compression like set of routines that just copies data
+//=== NULLCOMP - a compression like set of routines that just copies data
//=== without doing any compression. This is provided so that if the
//=== configured environment doesn't have a compression library the
//=== program can still work, albeit using more data/memory.
@@ -121,26 +121,26 @@
/// This structure is only used when a bytecode file is compressed.
/// As bytecode is being decompressed, the memory buffer might need
-/// to be reallocated. The buffer allocation is handled in a callback
+/// to be reallocated. The buffer allocation is handled in a callback
/// and this structure is needed to retain information across calls
/// to the callback.
/// @brief An internal buffer object used for handling decompression
struct BufferContext {
char* buff;
size_t size;
- BufferContext(size_t compressedSize) {
+ BufferContext(size_t compressedSize) {
// Null to indicate malloc of a new block
- buff = 0;
+ buff = 0;
// Compute the initial length of the uncompression buffer. Note that this
// is twice the length of the compressed buffer and will be doubled again
- // in the callback for an initial allocation of 4x compressedSize. This
- // calculation is based on the typical compression ratio of bzip2 on LLVM
- // bytecode files which typically ranges in the 50%-75% range. Since we
- // typically get at least 50%, doubling is insufficient. By using a 4x
+ // in the callback for an initial allocation of 4x compressedSize. This
+ // calculation is based on the typical compression ratio of bzip2 on LLVM
+ // bytecode files which typically ranges in the 50%-75% range. Since we
+ // typically get at least 50%, doubling is insufficient. By using a 4x
// multiplier on the first allocation, we minimize the impact of having to
// copy the buffer on reallocation.
- size = compressedSize*2;
+ size = compressedSize*2;
}
/// trimTo - Reduce the size of the buffer down to the specified amount. This
@@ -154,7 +154,7 @@
/// This function handles allocation of the buffer used for decompression of
/// compressed bytecode files. It is called by Compressor::decompress which is
- /// called by BytecodeReader::ParseBytecode.
+ /// called by BytecodeReader::ParseBytecode.
static size_t callback(char*&buff, size_t &sz, void* ctxt){
// Case the context variable to our BufferContext
BufferContext* bc = reinterpret_cast<BufferContext*>(ctxt);
@@ -168,9 +168,9 @@
// Figure out what to return to the Compressor. If this is the first call,
// then bc->buff will be null. In this case we want to return the entire
// buffer because there was no previous allocation. Otherwise, when the
- // buffer is reallocated, we save the new base pointer in the
- // BufferContext.buff field but return the address of only the extension,
- // mid-way through the buffer (since its size was doubled). Furthermore,
+ // buffer is reallocated, we save the new base pointer in the
+ // BufferContext.buff field but return the address of only the extension,
+ // mid-way through the buffer (since its size was doubled). Furthermore,
// the sz result must be 1/2 the total size of the buffer.
if (bc->buff == 0 ) {
buff = bc->buff = new_buff;
@@ -189,18 +189,18 @@
}
};
-} // end anonymous namespace
+} // end anonymous namespace
namespace {
// This structure retains the context when compressing the bytecode file. The
// WriteCompressedData function below uses it to keep track of the previously
-// filled chunk of memory (which it writes) and how many bytes have been
+// filled chunk of memory (which it writes) and how many bytes have been
// written.
struct WriterContext {
// Initialize the context
- WriterContext(std::ostream*OS, size_t CS)
+ WriterContext(std::ostream*OS, size_t CS)
: chunk(0), sz(0), written(0), compSize(CS), Out(OS) {}
// Make sure we clean up memory
@@ -219,10 +219,10 @@
sz = 0;
}
- // This function is a callback used by the Compressor::compress function to
+ // This function is a callback used by the Compressor::compress function to
// allocate memory for the compression buffer. This function fulfills that
// responsibility but also writes the previous (now filled) buffer out to the
- // stream.
+ // stream.
static size_t callback(char*& buffer, size_t &size, void* context) {
// Cast the context to the structure it must point to.
WriterContext* ctxt = reinterpret_cast<WriterContext*>(context);
@@ -259,7 +259,7 @@
} // end anonymous namespace
// Compress in one of three ways
-size_t Compressor::compress(const char* in, size_t size,
+size_t Compressor::compress(const char* in, size_t size,
OutputDataCallback* cb, void* context) {
assert(in && "Can't compress null buffer");
assert(size && "Can't compress empty buffer");
@@ -355,7 +355,7 @@
return result;
}
-size_t
+size_t
Compressor::compressToStream(const char*in, size_t size, std::ostream& out) {
// Set up the context and writer
WriterContext ctxt(&out, size / 2);
@@ -460,7 +460,7 @@
return result;
}
-size_t
+size_t
Compressor::decompressToNewBuffer(const char* in, size_t size, char*&out) {
BufferContext bc(size);
size_t result = decompress(in,size,BufferContext::callback,(void*)&bc);
@@ -468,7 +468,7 @@
return result;
}
-size_t
+size_t
Compressor::decompressToStream(const char*in, size_t size, std::ostream& out){
// Set up the context and writer
WriterContext ctxt(&out,size / 2);
Index: llvm/lib/Support/Debug.cpp
diff -u llvm/lib/Support/Debug.cpp:1.6 llvm/lib/Support/Debug.cpp:1.7
--- llvm/lib/Support/Debug.cpp:1.6 Wed Sep 1 17:55:35 2004
+++ llvm/lib/Support/Debug.cpp Thu Apr 21 17:52:05 2005
@@ -1,10 +1,10 @@
//===-- Debug.cpp - An easy way to add debug output to your code ----------===//
-//
+//
// 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 file implements a handle way of adding debugging information to your
Index: llvm/lib/Support/FileUtilities.cpp
diff -u llvm/lib/Support/FileUtilities.cpp:1.44 llvm/lib/Support/FileUtilities.cpp:1.45
--- llvm/lib/Support/FileUtilities.cpp:1.44 Wed Mar 16 22:49:04 2005
+++ llvm/lib/Support/FileUtilities.cpp Thu Apr 21 17:52:05 2005
@@ -1,10 +1,10 @@
//===- Support/FileUtilities.cpp - File System Utilities ------------------===//
-//
+//
// 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 file implements a family of utility functions which are useful for doing
@@ -24,7 +24,7 @@
static bool isNumberChar(char C) {
switch (C) {
case '0': case '1': case '2': case '3': case '4':
- case '5': case '6': case '7': case '8': case '9':
+ case '5': case '6': case '7': case '8': case '9':
case '.': case '+': case '-':
case 'e':
case 'E': return true;
@@ -47,7 +47,7 @@
double AbsTolerance, double RelTolerance,
std::string *ErrorMsg) {
char *F1NumEnd, *F2NumEnd;
- double V1 = 0.0, V2 = 0.0;
+ double V1 = 0.0, V2 = 0.0;
// If one of the positions is at a space and the other isn't, chomp up 'til
// the end of the space.
@@ -142,7 +142,7 @@
return 1;
// Now its safe to mmap the files into memory becasue both files
- // have a non-zero size.
+ // have a non-zero size.
sys::MappedFile F1(FileA);
sys::MappedFile F2(FileB);
F1.map();
@@ -171,7 +171,7 @@
// If the files need padding, do so now.
PadFileIfNeeded(File1Start, File1End, F1P);
PadFileIfNeeded(File2Start, File2End, F2P);
-
+
bool CompareFailed = false;
while (1) {
// Scan for the end of file or next difference.
Index: llvm/lib/Support/IsInf.cpp
diff -u llvm/lib/Support/IsInf.cpp:1.5 llvm/lib/Support/IsInf.cpp:1.6
--- llvm/lib/Support/IsInf.cpp:1.5 Fri Oct 29 18:17:45 2004
+++ llvm/lib/Support/IsInf.cpp Thu Apr 21 17:52:05 2005
@@ -1,10 +1,10 @@
//===-- IsInf.cpp - Platform-independent wrapper around C99 isinf() -------===//
-//
+//
// 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.
-//
+//
//===----------------------------------------------------------------------===//
#include "llvm/Config/config.h"
@@ -26,7 +26,7 @@
#define isinf(X) (!_finite(X))
#elif defined(_AIX) && defined(__GNUC__)
// GCC's fixincludes seems to be removing the isinf() declaration from the
-// system header /usr/include/math.h
+// system header /usr/include/math.h
# include <math.h>
static int isinf(double x) { return !finite(x) && x==x; }
#else
Index: llvm/lib/Support/IsNAN.cpp
diff -u llvm/lib/Support/IsNAN.cpp:1.3 llvm/lib/Support/IsNAN.cpp:1.4
--- llvm/lib/Support/IsNAN.cpp:1.3 Mon Oct 25 13:46:05 2004
+++ llvm/lib/Support/IsNAN.cpp Thu Apr 21 17:52:05 2005
@@ -1,13 +1,13 @@
//===-- IsNAN.cpp ---------------------------------------------------------===//
-//
+//
// 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.
-//
+//
//===----------------------------------------------------------------------===//
//
-// Platform-independent wrapper around C99 isnan().
+// Platform-independent wrapper around C99 isnan().
//
//===----------------------------------------------------------------------===//
Index: llvm/lib/Support/PluginLoader.cpp
diff -u llvm/lib/Support/PluginLoader.cpp:1.13 llvm/lib/Support/PluginLoader.cpp:1.14
--- llvm/lib/Support/PluginLoader.cpp:1.13 Mon Nov 29 08:07:46 2004
+++ llvm/lib/Support/PluginLoader.cpp Thu Apr 21 17:52:05 2005
@@ -1,10 +1,10 @@
//===-- PluginLoader.cpp - Implement -load command line option ------------===//
-//
+//
// 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 file implements the -load <plugin> command line option handler.
Index: llvm/lib/Support/SlowOperationInformer.cpp
diff -u llvm/lib/Support/SlowOperationInformer.cpp:1.5 llvm/lib/Support/SlowOperationInformer.cpp:1.6
--- llvm/lib/Support/SlowOperationInformer.cpp:1.5 Wed Sep 1 17:55:35 2004
+++ llvm/lib/Support/SlowOperationInformer.cpp Thu Apr 21 17:52:05 2005
@@ -1,12 +1,12 @@
//===-- SlowOperationInformer.cpp - Keep the user informed ----------------===//
-//
+//
// 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 file implements the SlowOperationInformer class for the LLVM debugger.
//
//===----------------------------------------------------------------------===//
Index: llvm/lib/Support/Statistic.cpp
diff -u llvm/lib/Support/Statistic.cpp:1.15 llvm/lib/Support/Statistic.cpp:1.16
--- llvm/lib/Support/Statistic.cpp:1.15 Wed Sep 1 17:55:35 2004
+++ llvm/lib/Support/Statistic.cpp Thu Apr 21 17:52:05 2005
@@ -1,10 +1,10 @@
//===-- Statistic.cpp - Easy way to expose stats information --------------===//
-//
+//
// 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 file implements the 'Statistic' class, which is designed to be an easy
@@ -78,9 +78,9 @@
// Figure out how long the biggest Value and Name fields are...
unsigned MaxNameLen = 0, MaxValLen = 0;
for (unsigned i = 0, e = AccumStats->size(); i != e; ++i) {
- MaxValLen = std::max(MaxValLen,
+ MaxValLen = std::max(MaxValLen,
(unsigned)(*AccumStats)[i].Value.length());
- MaxNameLen = std::max(MaxNameLen,
+ MaxNameLen = std::max(MaxNameLen,
(unsigned)std::strlen((*AccumStats)[i].Name));
}
Index: llvm/lib/Support/StringExtras.cpp
diff -u llvm/lib/Support/StringExtras.cpp:1.2 llvm/lib/Support/StringExtras.cpp:1.3
--- llvm/lib/Support/StringExtras.cpp:1.2 Wed Sep 1 17:55:35 2004
+++ llvm/lib/Support/StringExtras.cpp Thu Apr 21 17:52:05 2005
@@ -1,10 +1,10 @@
//===-- StringExtras.cpp - Implement the StringExtras header --------------===//
-//
+//
// 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 file implements the StringExtras.h header
@@ -35,9 +35,9 @@
// Create the return token.
std::string Result = std::string(Source.begin()+Start, Source.begin()+End);
-
+
// Erase the token that we read in.
Source.erase(Source.begin(), Source.begin()+End);
-
+
return Result;
}
Index: llvm/lib/Support/SystemUtils.cpp
diff -u llvm/lib/Support/SystemUtils.cpp:1.40 llvm/lib/Support/SystemUtils.cpp:1.41
--- llvm/lib/Support/SystemUtils.cpp:1.40 Sat Jan 1 18:10:03 2005
+++ llvm/lib/Support/SystemUtils.cpp Thu Apr 21 17:52:05 2005
@@ -1,10 +1,10 @@
//===- SystemUtils.cpp - Utilities for low-level system tasks -------------===//
-//
+//
// 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 file contains functions used to do a variety of low-level, often
@@ -42,14 +42,14 @@
#undef FindExecutable // needed on windows :(
sys::Path llvm::FindExecutable(const std::string &ExeName,
const std::string &ProgramPath) {
- // First check the directory that the calling program is in. We can do this
+ // First check the directory that the calling program is in. We can do this
// if ProgramPath contains at least one / character, indicating that it is a
// relative path to bugpoint itself.
sys::Path Result ( ProgramPath );
Result.elideFile();
if (!Result.isEmpty()) {
Result.appendFile(ExeName);
- if (Result.executable())
+ if (Result.executable())
return Result;
}
Index: llvm/lib/Support/Timer.cpp
diff -u llvm/lib/Support/Timer.cpp:1.44 llvm/lib/Support/Timer.cpp:1.45
--- llvm/lib/Support/Timer.cpp:1.44 Mon Mar 21 21:20:38 2005
+++ llvm/lib/Support/Timer.cpp Thu Apr 21 17:52:05 2005
@@ -1,10 +1,10 @@
//===-- Timer.cpp - Interval Timing Support -------------------------------===//
-//
+//
// 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.
-//
+//
//===----------------------------------------------------------------------===//
//
// Interval Timing implementation.
@@ -238,7 +238,7 @@
if (Total.getProcessTime())
printVal(getProcessTime(), Total.getProcessTime(), OS);
printVal(Elapsed, Total.Elapsed, OS);
-
+
OS << " ";
if (Total.MemUsed) {
@@ -294,10 +294,10 @@
{ // Scope to contain Total timer... don't allow total timer to drop us to
// zero timers...
Timer Total("TOTAL");
-
+
for (unsigned i = 0, e = TimersToPrint.size(); i != e; ++i)
Total.sum(TimersToPrint[i]);
-
+
// Print out timing header...
*OutStream << "===" << std::string(73, '-') << "===\n"
<< std::string(Padding, ' ') << Name << "\n"
@@ -329,11 +329,11 @@
if (Total.getPeakMem())
*OutStream << " -PeakMem-";
*OutStream << " --- Name ---\n";
-
+
// Loop through all of the timing data, printing it out...
for (unsigned i = 0, e = TimersToPrint.size(); i != e; ++i)
TimersToPrint[i].print(Total, *OutStream);
-
+
Total.print(Total, *OutStream);
*OutStream << std::endl; // Flush output
}
Index: llvm/lib/Support/ToolRunner.cpp
diff -u llvm/lib/Support/ToolRunner.cpp:1.41 llvm/lib/Support/ToolRunner.cpp:1.42
--- llvm/lib/Support/ToolRunner.cpp:1.41 Thu Mar 10 14:15:09 2005
+++ llvm/lib/Support/ToolRunner.cpp Thu Apr 21 17:52:05 2005
@@ -1,10 +1,10 @@
//===-- ToolRunner.cpp ----------------------------------------------------===//
-//
+//
// 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 file implements the interfaces described in the ToolRunner.h file.
@@ -36,8 +36,8 @@
redirects[0] = &StdInFile;
redirects[1] = &StdOutFile;
redirects[2] = &StdErrFile;
-
- return
+
+ return
sys::Program::ExecuteAndWait(ProgramPath, Args, 0, redirects, NumSeconds);
}
@@ -82,12 +82,12 @@
ToolArgs.clear ();
if (Args) { ToolArgs = *Args; }
}
-
+
virtual int ExecuteProgram(const std::string &Bytecode,
const std::vector<std::string> &Args,
const std::string &InputFile,
const std::string &OutputFile,
- const std::vector<std::string> &SharedLibs =
+ const std::vector<std::string> &SharedLibs =
std::vector<std::string>(),
unsigned Timeout = 0);
};
@@ -124,7 +124,7 @@
std::cerr << "\n";
);
return RunProgramWithTimeout(sys::Path(LLIPath), &LLIArgs[0],
- sys::Path(InputFile), sys::Path(OutputFile), sys::Path(OutputFile),
+ sys::Path(InputFile), sys::Path(OutputFile), sys::Path(OutputFile),
Timeout);
}
@@ -168,7 +168,7 @@
std::cerr << " " << LLCArgs[i];
std::cerr << "\n";
);
- if (RunProgramWithTimeout(sys::Path(LLCPath), &LLCArgs[0],
+ if (RunProgramWithTimeout(sys::Path(LLCPath), &LLCArgs[0],
sys::Path(), sys::Path(), sys::Path()))
ProcessFailure(sys::Path(LLCPath), &LLCArgs[0]);
}
@@ -228,12 +228,12 @@
ToolArgs.clear ();
if (Args) { ToolArgs = *Args; }
}
-
+
virtual int ExecuteProgram(const std::string &Bytecode,
const std::vector<std::string> &Args,
const std::string &InputFile,
const std::string &OutputFile,
- const std::vector<std::string> &SharedLibs =
+ const std::vector<std::string> &SharedLibs =
std::vector<std::string>(), unsigned Timeout =0);
};
}
@@ -271,7 +271,7 @@
);
DEBUG(std::cerr << "\nSending output to " << OutputFile << "\n");
return RunProgramWithTimeout(sys::Path(LLIPath), &JITArgs[0],
- sys::Path(InputFile), sys::Path(OutputFile), sys::Path(OutputFile),
+ sys::Path(InputFile), sys::Path(OutputFile), sys::Path(OutputFile),
Timeout);
}
@@ -313,7 +313,7 @@
std::cerr << " " << LLCArgs[i];
std::cerr << "\n";
);
- if (RunProgramWithTimeout(LLCPath, &LLCArgs[0], sys::Path(), sys::Path(),
+ if (RunProgramWithTimeout(LLCPath, &LLCArgs[0], sys::Path(), sys::Path(),
sys::Path()))
ProcessFailure(LLCPath, &LLCArgs[0]);
}
@@ -335,7 +335,7 @@
FileRemover CFileRemove(OutputCFile);
- return gcc->ExecuteProgram(OutputCFile.toString(), Args, GCC::CFile,
+ return gcc->ExecuteProgram(OutputCFile.toString(), Args, GCC::CFile,
InputFile, OutputFile, SharedLibs, Timeout);
}
@@ -346,7 +346,7 @@
const std::vector<std::string> *Args) {
sys::Path LLCPath = FindExecutable("llc", ProgramPath);
if (LLCPath.isEmpty()) {
- Message =
+ Message =
"Cannot find `llc' in executable directory or PATH!\n";
return 0;
}
@@ -377,7 +377,7 @@
// Specify the shared libraries to link in...
for (unsigned i = 0, e = SharedLibs.size(); i != e; ++i)
GCCArgs.push_back(SharedLibs[i].c_str());
-
+
// Specify -x explicitly in case the extension is wonky
GCCArgs.push_back("-x");
if (fileType == CFile) {
@@ -423,7 +423,7 @@
FileRemover OutputBinaryRemover(OutputBinary);
return RunProgramWithTimeout(OutputBinary, &ProgramArgs[0],
- sys::Path(InputFile), sys::Path(OutputFile), sys::Path(OutputFile),
+ sys::Path(InputFile), sys::Path(OutputFile), sys::Path(OutputFile),
Timeout);
}
@@ -458,9 +458,9 @@
"-O2", // Optimize the program a bit...
0
};
-
+
std::cout << "<gcc>" << std::flush;
- if (RunProgramWithTimeout(GCCPath, GCCArgs, sys::Path(), sys::Path(),
+ if (RunProgramWithTimeout(GCCPath, GCCArgs, sys::Path(), sys::Path(),
sys::Path())) {
ProcessFailure(GCCPath, GCCArgs);
return 1;
More information about the llvm-commits
mailing list