[llvm] b717355 - Revert "[Support] Remove redundant declaration setCurrentDebugTypes (NFC)"
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 16 17:19:33 PDT 2022
Author: Kazu Hirata
Date: 2022-07-16T17:19:27-07:00
New Revision: b7173553d723342d7790143e32dd5d0477941f69
URL: https://github.com/llvm/llvm-project/commit/b7173553d723342d7790143e32dd5d0477941f69
DIFF: https://github.com/llvm/llvm-project/commit/b7173553d723342d7790143e32dd5d0477941f69.diff
LOG: Revert "[Support] Remove redundant declaration setCurrentDebugTypes (NFC)"
This reverts commit 52232abc230435d4c1e1273d4b857a11f2c7b45b.
This patch breaks builds when NDEBUG is defined.
Added:
Modified:
llvm/lib/Support/Debug.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Support/Debug.cpp b/llvm/lib/Support/Debug.cpp
index 6b0c75cedb62d..98a9ac4722b50 100644
--- a/llvm/lib/Support/Debug.cpp
+++ b/llvm/lib/Support/Debug.cpp
@@ -61,6 +61,12 @@ bool isCurrentDebugType(const char *DebugType) {
return false;
}
+/// Set the current debug type, as if the -debug-only=X
+/// option were specified. Note that DebugFlag also needs to be set to true for
+/// debug output to be produced.
+///
+void setCurrentDebugTypes(const char **Types, unsigned Count);
+
void setCurrentDebugType(const char *Type) {
setCurrentDebugTypes(&Type, 1);
}
More information about the llvm-commits
mailing list