Skip to content

Commit be227d8

Browse files
Fix DEBUGLOG_WITH_STREAM_TYPE_AND_FILE broken in llvm#150750
This PR fixes the `DEBUGLOG_WITH_STREAM_TYPE_AND_FILE` macro that got broken in llvm#150750. That PR introduces a more sophisitaced version of that macro and refactored some code in that process, making the `getShortFileName` a free function instead of a class member function, but did not adapt this macro to the refactored code. Signed-off-by: Ingo Müller <[email protected]>
1 parent 5ad7ef6 commit be227d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/include/llvm/Support/DebugLog.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ namespace llvm {
4040
DEBUGLOG_WITH_STREAM_TYPE_AND_FILE(STREAM, TYPE, __SHORT_FILE__)
4141
#else
4242
#define DEBUGLOG_WITH_STREAM_AND_TYPE(STREAM, TYPE) \
43-
DEBUGLOG_WITH_STREAM_TYPE_AND_FILE( \
44-
STREAM, TYPE, ::llvm::impl::LogWithNewline::getShortFileName(__FILE__))
43+
DEBUGLOG_WITH_STREAM_TYPE_AND_FILE(STREAM, TYPE, \
44+
::llvm::impl::getShortFileName(__FILE__))
4545
#endif
4646

4747
namespace impl {

0 commit comments

Comments
 (0)