Always pass a diagnostic handler to the linker.
[oota-llvm.git] / tools / gold / gold-plugin.cpp
index 1bd2f8afb290c238554b45da452f63dcc002d1fd..8eacdc3ff235728302f043842792c529b7614535 100644 (file)
@@ -938,7 +938,7 @@ static ld_plugin_status allSymbolsReadHook(raw_fd_ostream *ApiFile) {
   }
 
   std::unique_ptr<Module> Combined(new Module("ld-temp.o", Context));
-  Linker L(*Combined);
+  Linker L(*Combined, diagnosticHandler);
 
   std::string DefaultTriple = sys::getDefaultTargetTriple();