[llvm] DLLExport llvm::dbgs (PR #127854)

Andrew Rogers via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 19 11:15:57 PST 2025


https://github.com/andrurogerz created https://github.com/llvm/llvm-project/pull/127854

None

>From f733e3a98ef2201ddc3cb0158899bffcbe82d343 Mon Sep 17 00:00:00 2001
From: Andrew Rogers <andrurogerz at gmail.com>
Date: Wed, 19 Feb 2025 10:50:53 -0800
Subject: [PATCH] DLLExport llvm::dbgs

---
 llvm/include/llvm/Support/Debug.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/llvm/include/llvm/Support/Debug.h b/llvm/include/llvm/Support/Debug.h
index 23c54ac9bb4b1..9eef747d7496d 100644
--- a/llvm/include/llvm/Support/Debug.h
+++ b/llvm/include/llvm/Support/Debug.h
@@ -28,6 +28,8 @@
 #ifndef LLVM_SUPPORT_DEBUG_H
 #define LLVM_SUPPORT_DEBUG_H
 
+#include "llvm/Support/Compiler.h"
+
 namespace llvm {
 
 class raw_ostream;
@@ -94,7 +96,7 @@ extern bool EnableDebugBuffering;
 /// dbgs() - This returns a reference to a raw_ostream for debugging
 /// messages.  If debugging is disabled it returns errs().  Use it
 /// like: dbgs() << "foo" << "bar";
-raw_ostream &dbgs();
+LLVM_ABI raw_ostream &dbgs();
 
 // DEBUG macro - This macro should be used by passes to emit debug information.
 // If the '-debug' option is specified on the commandline, and if this is a



More information about the llvm-commits mailing list