diff options
author | Andrew Trick <atrick@apple.com> | 2011-04-05 18:41:31 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2011-04-05 18:41:31 +0000 |
commit | a41af7aeef953870da1cfeb59f7f3a34789dc8a5 (patch) | |
tree | de4547baec81095855c27f7c1abdd0794fb8613d /tools | |
parent | 0da9f13faa696759150fa29e42e5ee107ee0b712 (diff) | |
download | external_llvm-a41af7aeef953870da1cfeb59f7f3a34789dc8a5.zip external_llvm-a41af7aeef953870da1cfeb59f7f3a34789dc8a5.tar.gz external_llvm-a41af7aeef953870da1cfeb59f7f3a34789dc8a5.tar.bz2 |
whitespace
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128905 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/llc/llc.cpp | 4 | ||||
-rw-r--r-- | tools/opt/opt.cpp | 16 |
2 files changed, 10 insertions, 10 deletions
diff --git a/tools/llc/llc.cpp b/tools/llc/llc.cpp index bb426a9..0528cc2 100644 --- a/tools/llc/llc.cpp +++ b/tools/llc/llc.cpp @@ -207,7 +207,7 @@ int main(int argc, char **argv) { InitializeAllAsmParsers(); cl::ParseCommandLineOptions(argc, argv, "llvm system compiler\n"); - + // Load the module to be compiled... SMDiagnostic Err; std::auto_ptr<Module> M; @@ -271,7 +271,7 @@ int main(int argc, char **argv) { FeaturesStr = Features.getString(); } - std::auto_ptr<TargetMachine> + std::auto_ptr<TargetMachine> target(TheTarget->createTargetMachine(TheTriple.getTriple(), FeaturesStr)); assert(target.get() && "Could not allocate target machine!"); TargetMachine &Target = *target.get(); diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp index 6760b22..3f60126 100644 --- a/tools/opt/opt.cpp +++ b/tools/opt/opt.cpp @@ -133,11 +133,11 @@ static cl::opt<bool> AnalyzeOnly("analyze", cl::desc("Only perform analysis, no optimization")); static cl::opt<bool> -PrintBreakpoints("print-breakpoints-for-testing", +PrintBreakpoints("print-breakpoints-for-testing", cl::desc("Print select breakpoints location for testing")); static cl::opt<std::string> -DefaultDataLayout("default-data-layout", +DefaultDataLayout("default-data-layout", cl::desc("data layout string to use if not specified by module"), cl::value_desc("layout-string"), cl::init("")); @@ -328,7 +328,7 @@ struct BasicBlockPassPrinter : public BasicBlockPass { << "': Pass " << PassToPrint->getPassName() << ":\n"; // Get and print pass... - getAnalysisID<Pass>(PassToPrint->getTypeInfo()).print(Out, + getAnalysisID<Pass>(PassToPrint->getTypeInfo()).print(Out, BB.getParent()->getParent()); return false; } @@ -479,7 +479,7 @@ int main(int argc, char **argv) { llvm_shutdown_obj Y; // Call llvm_shutdown() on exit. LLVMContext &Context = getGlobalContext(); - + // Initialize passes PassRegistry &Registry = *PassRegistry::getPassRegistry(); initializeCore(Registry); @@ -491,7 +491,7 @@ int main(int argc, char **argv) { initializeInstCombine(Registry); initializeInstrumentation(Registry); initializeTarget(Registry); - + cl::ParseCommandLineOptions(argc, argv, "llvm .bc -> .bc modular optimizer and analysis printer\n"); @@ -549,12 +549,12 @@ int main(int argc, char **argv) { // Add an appropriate TargetLibraryInfo pass for the module's triple. TargetLibraryInfo *TLI = new TargetLibraryInfo(Triple(M->getTargetTriple())); - + // The -disable-simplify-libcalls flag actually disables all builtin optzns. if (DisableSimplifyLibCalls) TLI->disableAllFunctions(); Passes.add(TLI); - + // Add an appropriate TargetData instance for this module. TargetData *TD = 0; const std::string &ModuleDataLayout = M.get()->getDataLayout(); @@ -578,7 +578,7 @@ int main(int argc, char **argv) { if (!Out) { if (OutputFilename.empty()) OutputFilename = "-"; - + std::string ErrorInfo; Out.reset(new tool_output_file(OutputFilename.c_str(), ErrorInfo, raw_fd_ostream::F_Binary)); |