Use the DiagnosticHandler to print diagnostics when reading bitcode.
[oota-llvm.git] / lib / Linker / LinkModules.cpp
index 7a8025f897ee1d7b7cab31fb31cb2b44f785a882..767d465d1bee6da2d78e2e17cce041231bb53ddd 100644 (file)
@@ -420,11 +420,11 @@ class ModuleLinker {
   /// Functions that have replaced other functions.
   SmallPtrSet<const Function *, 16> OverridingFunctions;
 
-  Linker::DiagnosticHandlerFunction DiagnosticHandler;
+  DiagnosticHandlerFunction DiagnosticHandler;
 
 public:
   ModuleLinker(Module *dstM, Linker::IdentifiedStructTypeSet &Set, Module *srcM,
-               Linker::DiagnosticHandlerFunction DiagnosticHandler)
+               DiagnosticHandlerFunction DiagnosticHandler)
       : DstM(dstM), SrcM(srcM), TypeMap(Set),
         ValMaterializer(TypeMap, DstM, LazilyLinkGlobalValues),
         DiagnosticHandler(DiagnosticHandler) {}