diff options
author | Misha Brukman <brukman+llvm@gmail.com> | 2005-04-20 04:08:35 +0000 |
---|---|---|
committer | Misha Brukman <brukman+llvm@gmail.com> | 2005-04-20 04:08:35 +0000 |
commit | 704448f83bf66b44588e6542e1ac6ef194061024 (patch) | |
tree | 4e3a52be3211ea6febab20abeca192ab9cce4a9a /tools/gccld/GenerateCode.cpp | |
parent | 8f586ba4ed5fa7aea0323254b2c5b6572b0a0869 (diff) |
Eliminate trailing spaces at end-of-line
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21372 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/gccld/GenerateCode.cpp')
-rw-r--r-- | tools/gccld/GenerateCode.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tools/gccld/GenerateCode.cpp b/tools/gccld/GenerateCode.cpp index 1f1a261248..f0466ddd33 100644 --- a/tools/gccld/GenerateCode.cpp +++ b/tools/gccld/GenerateCode.cpp @@ -130,7 +130,7 @@ static void dumpArgs(const char **args) { 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 @@ static bool isBytecodeLibrary(const sys::Path &FullPath) { 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 @@ static bool isBytecodeLPath(const std::string &LibPath) { if ( File->isDirectory() ) continue; - + std::string path = File->toString(); std::string dllsuffix = sys::Path::GetDLLSuffix(); @@ -183,7 +183,7 @@ static bool isBytecodeLPath(const std::string &LibPath) { 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 @@ int llvm::GenerateNative(const std::string &OutputFilename, 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 @@ int llvm::GenerateNative(const std::string &OutputFilename, std::string so = "-Wl,-soname," + SOName; args.push_back(so.c_str()); } - + // Add in the libpaths to find the libraries. // // Note: |