diff options
author | Misha Brukman <brukman+llvm@gmail.com> | 2005-05-03 20:30:34 +0000 |
---|---|---|
committer | Misha Brukman <brukman+llvm@gmail.com> | 2005-05-03 20:30:34 +0000 |
commit | 0b861485ec857c5c7113dad0c28480a2c7a16184 (patch) | |
tree | 76c4730a48a4aefe89f8f22961b30152f4093985 /tools/llvmc/CompilerDriver.cpp | |
parent | ec370fd3dce3c00cb0a5665cd3e65685325e7d09 (diff) |
Minor clean-ups
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21678 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvmc/CompilerDriver.cpp')
-rw-r--r-- | tools/llvmc/CompilerDriver.cpp | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/tools/llvmc/CompilerDriver.cpp b/tools/llvmc/CompilerDriver.cpp index 6f2ec2ec10..e7addf86e4 100644 --- a/tools/llvmc/CompilerDriver.cpp +++ b/tools/llvmc/CompilerDriver.cpp @@ -30,21 +30,21 @@ void WriteAction(CompilerDriver::Action* action ) { std::cerr << action->program.c_str(); std::vector<std::string>::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<std::string>::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 |