[llvm] Introduce LDBG_OS() macro as a variant of LDBG() (PR #157194)

Jacques Pienaar via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 9 08:16:29 PDT 2025


================
@@ -173,17 +344,17 @@ getShortFileName(const char *path) {
 /// "[DebugType] File:Line "
 /// Where the File is the file name without the path prefix.
 static LLVM_ATTRIBUTE_UNUSED std::string
-computePrefix(const char *DebugType, const char *File, int Line, int Level) {
+computePrefix(StringRef DebugType, const char *File, int Line, int Level) {
----------------
jpienaar wrote:

How important is this change? (E.g, StringRef vs const char*)

https://github.com/llvm/llvm-project/pull/157194


More information about the llvm-commits mailing list