From 23e9f163ade25b28340d9544f851c7f7845e7d47 Mon Sep 17 00:00:00 2001 From: Misha Brukman Date: Tue, 3 May 2005 20:30:34 +0000 Subject: Minor clean-ups llvm-svn: 21678 --- llvm/tools/llvmc/CompilerDriver.cpp | 28 +++++++++++++--------------- llvm/tools/llvmc/Configuration.cpp | 2 -- 2 files changed, 13 insertions(+), 17 deletions(-) (limited to 'llvm/tools/llvmc') diff --git a/llvm/tools/llvmc/CompilerDriver.cpp b/llvm/tools/llvmc/CompilerDriver.cpp index 6f2ec2ec10c..e7addf86e4e 100644 --- a/llvm/tools/llvmc/CompilerDriver.cpp +++ b/llvm/tools/llvmc/CompilerDriver.cpp @@ -30,21 +30,21 @@ void WriteAction(CompilerDriver::Action* action ) { std::cerr << action->program.c_str(); std::vector::const_iterator I = action->args.begin(); while (I != action->args.end()) { - std::cerr << " " << *I; + std::cerr << ' ' << *I; ++I; } - std::cerr << "\n"; + std::cerr << '\n'; } void DumpAction(CompilerDriver::Action* action) { std::cerr << "command = " << action->program.c_str(); std::vector::const_iterator I = action->args.begin(); while (I != action->args.end()) { - std::cerr << " " << *I; + std::cerr << ' ' << *I; ++I; } - std::cerr << "\n"; - std::cerr << "flags = " << action->flags << "\n"; + std::cerr << '\n'; + std::cerr << "flags = " << action->flags << '\n'; } void DumpConfigData(CompilerDriver::ConfigData* cd, const std::string& type ){ @@ -108,19 +108,19 @@ public: /// @name Methods /// @{ public: - virtual void setFinalPhase( Phases phase ) { + virtual void setFinalPhase(Phases phase) { finalPhase = phase; } - virtual void setOptimization( OptimizationLevels level ) { + virtual void setOptimization(OptimizationLevels level) { optLevel = level; } - virtual void setDriverFlags( unsigned flags ) { + virtual void setDriverFlags(unsigned flags) { Flags = flags & DRIVER_FLAGS_MASK; } - virtual void setOutputMachine( const std::string& machineName ) { + virtual void setOutputMachine(const std::string& machineName) { machine = machineName; } @@ -155,11 +155,11 @@ public: } } - virtual void addLibraryPath( const sys::Path& libPath ) { + virtual void addLibraryPath(const sys::Path& libPath) { LibraryPaths.push_back(libPath); } - virtual void addToolPath( const sys::Path& toolPath ) { + virtual void addToolPath(const sys::Path& toolPath) { ToolPaths.push_back(toolPath); } @@ -195,7 +195,7 @@ private: } sys::Path MakeTempFile(const std::string& basename, - const std::string& suffix ) { + const std::string& suffix) { sys::Path result(TempDir); if (!result.appendFile(basename)) throw basename + ": can't use this file name"; @@ -344,7 +344,7 @@ private: if (*PI == "%Wopts%") { for (StringVector::iterator I = WOptions.begin(), E = WOptions.end(); I != E ; ++I ) { - action->args.push_back( std::string("-W") + *I ); + action->args.push_back(std::string("-W") + *I); } } else found = false; @@ -913,5 +913,3 @@ CompilerDriver::ConfigData::ConfigData() for (unsigned i = 0; i < NUM_PHASES; ++i) opts.push_back(emptyVec); } - -// vim: sw=2 smartindent smarttab tw=80 autoindent expandtab diff --git a/llvm/tools/llvmc/Configuration.cpp b/llvm/tools/llvmc/Configuration.cpp index e2d20b0cfa4..2abf651d702 100644 --- a/llvm/tools/llvmc/Configuration.cpp +++ b/llvm/tools/llvmc/Configuration.cpp @@ -622,5 +622,3 @@ LLVMC_ConfigDataProvider::ProvideConfigData(const std::string& filetype) { } return result; // Might return 0 } - -// vim: sw=2 smartindent smarttab tw=80 autoindent expandtab -- cgit v1.2.3