summaryrefslogtreecommitdiff
path: root/tools/driver/Main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/driver/Main.cpp')
-rw-r--r--tools/driver/Main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/driver/Main.cpp b/tools/driver/Main.cpp
index 327b22de5e..ac74ca55db 100644
--- a/tools/driver/Main.cpp
+++ b/tools/driver/Main.cpp
@@ -239,7 +239,7 @@ static bool EmitFile(llvm::raw_ostream &Out,
PassManager PM;
- Target.setAsmVerbosityDefault(true);
+ //Target.setAsmVerbosityDefault(true);
//Target.setMCRelaxAll(true);
llvm::formatted_raw_ostream FOS(Out);
@@ -264,7 +264,7 @@ static bool EmitOutputFile(const std::string &Input,
BackendAction Action) {
std::error_code err;
llvm::raw_fd_ostream Out(Input.c_str(), err, llvm::sys::fs::F_None);
- if (!err){
+ if (err){
llvm::errs() << "Could not open output file '" << Input << "': "
<< err.message() <<"\n";
return true;
@@ -384,7 +384,7 @@ static bool ParseFile(const std::string &Filename,
auto TheModule = CG->GetModule();
auto PM = new PassManager();
PM->add(new DataLayoutPass());
- TM->addAnalysisPasses(*PM);
+ //TM->addAnalysisPasses(*PM);
PM->add(createPromoteMemoryToRegisterPass());
PassManagerBuilder PMBuilder;