[llvm-commits] [llvm] r173359 - /llvm/trunk/tools/bugpoint/ToolRunner.cpp

Saleem Abdulrasool compnerd at compnerd.org
Thu Jan 24 08:49:13 PST 2013


Author: compnerd
Date: Thu Jan 24 10:49:12 2013
New Revision: 173359

URL: http://llvm.org/viewvc/llvm-project?rev=173359&view=rev
Log:
[bugpoint] set Message after tool configuration

Set the message returned after the GCC runner has been constructed as otherwise
the message will be overwritten by the construction of the runner, resulting in
misleading messages.

Signed-off-by: Saleem Abdulrasool <compnerd at compnerd.org>
Reviewed-by: Chandler Carruth <chandlerc at gmail.com>

Modified:
    llvm/trunk/tools/bugpoint/ToolRunner.cpp

Modified: llvm/trunk/tools/bugpoint/ToolRunner.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/bugpoint/ToolRunner.cpp?rev=173359&r1=173358&r2=173359&view=diff
==============================================================================
--- llvm/trunk/tools/bugpoint/ToolRunner.cpp (original)
+++ llvm/trunk/tools/bugpoint/ToolRunner.cpp Thu Jan 24 10:49:12 2013
@@ -531,12 +531,12 @@
     return 0;
   }
 
-  Message = "Found llc: " + LLCPath + "\n";
   GCC *gcc = GCC::create(Message, GCCBinary, GCCArgs);
   if (!gcc) {
     errs() << Message << "\n";
     exit(1);
   }
+  Message = "Found llc: " + LLCPath + "\n";
   return new LLC(LLCPath, gcc, Args, UseIntegratedAssembler);
 }
 





More information about the llvm-commits mailing list