[llvm-commits] CVS: llvm/tools/llvmc/CompilerDriver.cpp Configuration.cpp
Misha Brukman
brukman at cs.uiuc.edu
Tue May 3 13:30:45 PDT 2005
Changes in directory llvm/tools/llvmc:
CompilerDriver.cpp updated: 1.29 -> 1.30
Configuration.cpp updated: 1.18 -> 1.19
---
Log message:
Minor clean-ups
---
Diffs of the changes: (+13 -17)
CompilerDriver.cpp | 28 +++++++++++++---------------
Configuration.cpp | 2 --
2 files changed, 13 insertions(+), 17 deletions(-)
Index: llvm/tools/llvmc/CompilerDriver.cpp
diff -u llvm/tools/llvmc/CompilerDriver.cpp:1.29 llvm/tools/llvmc/CompilerDriver.cpp:1.30
--- llvm/tools/llvmc/CompilerDriver.cpp:1.29 Thu Apr 21 18:59:45 2005
+++ llvm/tools/llvmc/CompilerDriver.cpp Tue May 3 15:30:34 2005
@@ -30,21 +30,21 @@
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 @@
/// @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 @@
}
}
- 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 @@
}
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 @@
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 @@
for (unsigned i = 0; i < NUM_PHASES; ++i)
opts.push_back(emptyVec);
}
-
-// vim: sw=2 smartindent smarttab tw=80 autoindent expandtab
Index: llvm/tools/llvmc/Configuration.cpp
diff -u llvm/tools/llvmc/Configuration.cpp:1.18 llvm/tools/llvmc/Configuration.cpp:1.19
--- llvm/tools/llvmc/Configuration.cpp:1.18 Thu Apr 21 18:59:45 2005
+++ llvm/tools/llvmc/Configuration.cpp Tue May 3 15:30:34 2005
@@ -622,5 +622,3 @@
}
return result; // Might return 0
}
-
-// vim: sw=2 smartindent smarttab tw=80 autoindent expandtab
More information about the llvm-commits
mailing list