[llvm] e5121be - Revert "Apply clang-tidy fixes for readability-redundant-declaration in Debug.cpp (NFC)"
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 3 08:14:16 PDT 2022
Author: Kazu Hirata
Date: 2022-04-03T08:14:11-07:00
New Revision: e5121be9104e449e130251ddb467cd2dbfcd7723
URL: https://github.com/llvm/llvm-project/commit/e5121be9104e449e130251ddb467cd2dbfcd7723
DIFF: https://github.com/llvm/llvm-project/commit/e5121be9104e449e130251ddb467cd2dbfcd7723.diff
LOG: Revert "Apply clang-tidy fixes for readability-redundant-declaration in Debug.cpp (NFC)"
This reverts commit 0fe01a9346658c0955b68b123f2b470b018114b1.
The commit caused build failures like:
llvm/lib/Support/Debug.cpp:65:3: error: ‘setCurrentDebugTypes’ was
not declared in this scope; did you mean ‘setCurrentDebugType’?
Added:
Modified:
llvm/lib/Support/Debug.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Support/Debug.cpp b/llvm/lib/Support/Debug.cpp
index 03c1813b11a8b..5470d931b00be 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