[llvm-commits] CVS: llvm/tools/gccld/gccld.cpp GenerateCode.cpp

Misha Brukman brukman at cs.uiuc.edu
Tue Apr 19 21:08:46 PDT 2005



Changes in directory llvm/tools/gccld:

gccld.cpp updated: 1.98 -> 1.99
GenerateCode.cpp updated: 1.46 -> 1.47
---
Log message:

Eliminate trailing spaces at end-of-line


---
Diffs of the changes:  (+18 -18)

 GenerateCode.cpp |   14 +++++++-------
 gccld.cpp        |   22 +++++++++++-----------
 2 files changed, 18 insertions(+), 18 deletions(-)


Index: llvm/tools/gccld/gccld.cpp
diff -u llvm/tools/gccld/gccld.cpp:1.98 llvm/tools/gccld/gccld.cpp:1.99
--- llvm/tools/gccld/gccld.cpp:1.98	Tue Apr 19 22:22:18 2005
+++ llvm/tools/gccld/gccld.cpp	Tue Apr 19 23:08:35 2005
@@ -46,9 +46,9 @@
   OutputFilename("o", cl::desc("Override output filename"), cl::init("a.out"),
                  cl::value_desc("filename"));
 
-  cl::opt<bool>    
+  cl::opt<bool>
   Verbose("v", cl::desc("Print information about actions taken"));
-  
+
   cl::list<std::string> 
   LibPaths("L", cl::desc("Specify a library search path"), cl::Prefix,
            cl::value_desc("directory"));
@@ -77,29 +77,29 @@
   Relink("r", cl::desc("Alias for -link-as-library"),
          cl::aliasopt(LinkAsLibrary));
 
-  cl::opt<bool>    
+  cl::opt<bool>
   Native("native",
          cl::desc("Generate a native binary instead of a shell script"));
-  cl::opt<bool>    
+  cl::opt<bool>
   NativeCBE("native-cbe",
             cl::desc("Generate a native binary with the C backend and GCC"));
 
-  cl::opt<bool>    
+  cl::opt<bool>
   SaveTemps("save-temps",
          cl::desc("Do not delete temporary files"));
-            
+
   cl::opt<std::string>
   RPath("rpath",
         cl::desc("Set runtime shared library search path (requires -native or"
                  " -native-cbe)"), 
         cl::Prefix, cl::value_desc("directory"));
-        
+
   cl::opt<std::string>
   SOName("soname",
          cl::desc("Set internal name of shared library (requires -native or"
                  " -native-cbe)"), 
          cl::Prefix, cl::value_desc("name"));
-  
+
   // Compatibility options that are ignored but supported by LD
   cl::opt<std::string>
   CO4("version-script", cl::Hidden, cl::desc("Compatibility option: ignored"));
@@ -317,7 +317,7 @@
         // Remove the bytecode language file.
         sys::Path(RealBytecodeOutput).destroyFile();
       }
-    
+
     } else if (NativeCBE) {
       sys::Path CFile (OutputFilename);
       CFile.appendSuffix("cbe.c");
@@ -352,7 +352,7 @@
 
     } else if (!LinkAsLibrary) {
       EmitShellScript(argv);
-      
+
       // Make the bytecode file readable and directly executable in LLEE
       sys::Path(RealBytecodeOutput).makeExecutable();
       sys::Path(RealBytecodeOutput).makeReadable();
@@ -360,7 +360,7 @@
 
     // Make the output, whether native or script, executable as well...
     sys::Path(OutputFilename).makeExecutable();
-  
+
   } catch (const char*msg) {
     std::cerr << argv[0] << ": " << msg << "\n";
     exitCode = 1;


Index: llvm/tools/gccld/GenerateCode.cpp
diff -u llvm/tools/gccld/GenerateCode.cpp:1.46 llvm/tools/gccld/GenerateCode.cpp:1.47
--- llvm/tools/gccld/GenerateCode.cpp:1.46	Tue Apr 19 22:22:18 2005
+++ llvm/tools/gccld/GenerateCode.cpp	Tue Apr 19 23:08:35 2005
@@ -130,7 +130,7 @@
 static inline void addPass(PassManager &PM, Pass *P) {
   // Add the pass to the pass manager...
   PM.add(P);
-  
+
   // If we are verifying all of the intermediate steps, add the verifier...
   if (Verify) PM.add(createVerifierPass());
 }
@@ -144,12 +144,12 @@
   if (FullPath.isArchive() ) {
     std::string ErrorMessage;
     Archive* ar = Archive::OpenAndLoadSymbols( FullPath, &ErrorMessage );
-    return ar->isBytecodeArchive();    
+    return ar->isBytecodeArchive();
   }
   return false;
 }
 
-static bool isBytecodeLPath(const std::string &LibPath) {                        
+static bool isBytecodeLPath(const std::string &LibPath) {
   bool isBytecodeLPath = false;
 
   // Make sure the -L path has a '/' character
@@ -174,7 +174,7 @@
 
     if ( File->isDirectory() )
       continue;
-    
+
     std::string path = File->toString();
     std::string dllsuffix = sys::Path::GetDLLSuffix();
 
@@ -183,7 +183,7 @@
     if ( path.find(dllsuffix, path.size()-dllsuffix.size()) == std::string::npos
         && path.find(".a", path.size()-2) == std::string::npos )
       continue;
-     
+
     // Finally, check to see if the file is a true bytecode file
     if (isBytecodeLibrary(*File))
       isBytecodeLPath = true;
@@ -391,7 +391,7 @@
   args.push_back("-o");
   args.push_back(OutputFilename.c_str());
   args.push_back(InputFilename.c_str());
-  
+
   if (Shared) args.push_back("-shared");
   if (!RPath.empty()) {
     std::string rp = "-Wl,-rpath," + RPath;
@@ -401,7 +401,7 @@
     std::string so = "-Wl,-soname," + SOName;
     args.push_back(so.c_str());
   }
-  
+
   // Add in the libpaths to find the libraries.
   //
   // Note:






More information about the llvm-commits mailing list