diff options
author | Kazu Hirata <kazu@google.com> | 2022-04-03 08:14:11 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-04-03 08:14:11 -0700 |
commit | e5121be9104e449e130251ddb467cd2dbfcd7723 (patch) | |
tree | ba316ca61dd64f3e25fb3cca8b8024f629be1aa1 /llvm/lib/Support/Debug.cpp | |
parent | 6020830e88c561d3e589170eb4c1b085f97fd795 (diff) | |
download | llvm-e5121be9104e449e130251ddb467cd2dbfcd7723.zip llvm-e5121be9104e449e130251ddb467cd2dbfcd7723.tar.gz llvm-e5121be9104e449e130251ddb467cd2dbfcd7723.tar.bz2 |
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’?
Diffstat (limited to 'llvm/lib/Support/Debug.cpp')
-rw-r--r-- | llvm/lib/Support/Debug.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Support/Debug.cpp b/llvm/lib/Support/Debug.cpp index 03c1813..5470d93 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); } |