summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/lib/Support/Debug.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/llvm/lib/Support/Debug.cpp')
-rw-r--r--contrib/llvm/lib/Support/Debug.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/contrib/llvm/lib/Support/Debug.cpp b/contrib/llvm/lib/Support/Debug.cpp
index 323d532..9132911 100644
--- a/contrib/llvm/lib/Support/Debug.cpp
+++ b/contrib/llvm/lib/Support/Debug.cpp
@@ -32,6 +32,7 @@
#undef isCurrentDebugType
#undef setCurrentDebugType
+#undef setCurrentDebugTypes
using namespace llvm;
@@ -62,11 +63,17 @@ bool isCurrentDebugType(const char *DebugType) {
/// 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) {
- CurrentDebugType->clear();
- CurrentDebugType->push_back(Type);
+ setCurrentDebugTypes(&Type, 1);
}
+void setCurrentDebugTypes(const char **Types, unsigned Count) {
+ CurrentDebugType->clear();
+ for (size_t T = 0; T < Count; ++T)
+ CurrentDebugType->push_back(Types[T]);
+}
} // namespace llvm
// All Debug.h functionality is a no-op in NDEBUG mode.
OpenPOWER on IntegriCloud