[lld] [ELF] Add context-aware diagnostic functions (PR #112319)
Sam Clegg via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 15 16:42:41 PDT 2024
================
@@ -152,6 +152,19 @@ void message(const Twine &msg, llvm::raw_ostream &s = outs());
void warn(const Twine &msg);
uint64_t errorCount();
+enum class DiagLevel { Log, Warn, Err, Fatal };
+
+class SyncStream {
----------------
sbc100 wrote:
I'm curious what the "Sync" part means here? Can we come up with a more meaningful name? Something that signifies this relates to logging/error output maybe?
https://github.com/llvm/llvm-project/pull/112319
More information about the llvm-commits
mailing list