[llvm] 52232ab - [Support] Remove redundant declaration setCurrentDebugTypes (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 16 15:50:24 PDT 2022
Author: Kazu Hirata
Date: 2022-07-16T15:50:18-07:00
New Revision: 52232abc230435d4c1e1273d4b857a11f2c7b45b
URL: https://github.com/llvm/llvm-project/commit/52232abc230435d4c1e1273d4b857a11f2c7b45b
DIFF: https://github.com/llvm/llvm-project/commit/52232abc230435d4c1e1273d4b857a11f2c7b45b.diff
LOG: [Support] Remove redundant declaration setCurrentDebugTypes (NFC)
The function is declared in llvm/include/llvm/Support/Debug.h.
Identified with readability-redundant-declaration.
Added:
Modified:
llvm/lib/Support/Debug.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Support/Debug.cpp b/llvm/lib/Support/Debug.cpp
index 98a9ac4722b50..6b0c75cedb62d 100644
--- a/llvm/lib/Support/Debug.cpp
+++ b/llvm/lib/Support/Debug.cpp
@@ -61,12 +61,6 @@ 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