Level = LDPL_WARNING;
break;
case DS_Note:
+ case DS_Remark:
Level = LDPL_INFO;
break;
- // FIXME: Just ignore remarks for now. They are always passed by
- // if there is a custom diagnostic handler, so we get flooded.
- case DS_Remark:
- return;
}
message(Level, "LLVM gold plugin: %s", ErrStorage.c_str());
}
return LDPS_OK;
LLVMContext Context;
- Context.setDiagnosticHandler(diagnosticHandler);
+ Context.setDiagnosticHandler(diagnosticHandler, nullptr, true);
std::unique_ptr<Module> Combined(new Module("ld-temp.o", Context));
Linker L(Combined.get());