[#LDBG_OS] = LDBG_OS :mrdocs: LDBG_OS() is a macro that behaves like LDBG() but instead of directly using it to stream the output, it takes a callback function that will be called with a raw_ostream. This is useful when you need to pass a `raw_ostream` to a helper function to be able to print (when the `<<` operator is not available). == Synopsis Declared in `<llvm/Support/DebugLog.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- #define LDBG_OS(...) ---- == Description E.g., LDBG_OS([&]&Os) { Os << "Pass Manager contains: "; pm.printAsTextual(Os); }); Just like LDBG(), it optionally accepts a `level` and `type` arguments. E.g., LDBG_OS(2, [&]&Os) { ... }); LDBG_OS("debug_type", [&]&Os) { ... }); LDBG_OS("debug_type", 2, [&]&Os) { ... }); [.small]#Created with https://www.mrdocs.com[MrDocs]#