Use diagnostic handler in the LLVMContext
[oota-llvm.git] / tools / gold / gold-plugin.cpp
index e52606b8828b74ff4497b897506b28a89af058bd..186097fccf6235f033ce9f6f8b1ec39379a4ae5a 100644 (file)
@@ -879,7 +879,7 @@ static ld_plugin_status allSymbolsReadHook(raw_fd_ostream *ApiFile) {
   Context.setDiagnosticHandler(diagnosticHandlerForContext, nullptr, true);
 
   std::unique_ptr<Module> Combined(new Module("ld-temp.o", Context));
-  IRMover L(*Combined, diagnosticHandler);
+  IRMover L(*Combined);
 
   std::string DefaultTriple = sys::getDefaultTargetTriple();