mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
Eliminate trailing spaces at end-of-line
llvm-svn: 21372
This commit is contained in:
parent
cf206fe8e1
commit
75950190e3
@ -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:
|
||||
|
@ -46,9 +46,9 @@ namespace {
|
||||
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 @@ namespace {
|
||||
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 @@ int main(int argc, char **argv, char **envp ) {
|
||||
// Remove the bytecode language file.
|
||||
sys::Path(RealBytecodeOutput).destroyFile();
|
||||
}
|
||||
|
||||
|
||||
} else if (NativeCBE) {
|
||||
sys::Path CFile (OutputFilename);
|
||||
CFile.appendSuffix("cbe.c");
|
||||
@ -352,7 +352,7 @@ int main(int argc, char **argv, char **envp ) {
|
||||
|
||||
} 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 @@ int main(int argc, char **argv, char **envp ) {
|
||||
|
||||
// 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;
|
||||
|
Loading…
Reference in New Issue
Block a user