Minor clean-ups
authorMisha Brukman <brukman+llvm@gmail.com>
Tue, 3 May 2005 20:30:34 +0000 (20:30 +0000)
committerMisha Brukman <brukman+llvm@gmail.com>
Tue, 3 May 2005 20:30:34 +0000 (20:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21678 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvmc/CompilerDriver.cpp
tools/llvmc/Configuration.cpp

index 6f2ec2ec10c9a9e84bcc0ee293acf3e3a565afd3..e7addf86e4ec0c3733fd0a0bdf8c4d1a92857df2 100644 (file)
@@ -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
index e2d20b0cfa4693e08ef49d5183135d1cfdbba166..2abf651d70210dfaa3c415b96e9973dc909912b0 100644 (file)
@@ -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