diff options
author | Eugene Leviant <eleviant@accesssoftek.com> | 2016-12-27 09:31:20 +0000 |
---|---|---|
committer | Eugene Leviant <eleviant@accesssoftek.com> | 2016-12-27 09:31:20 +0000 |
commit | c089e406b9d7e654fda5e27f34b5747553d75d15 (patch) | |
tree | 72143765a259fff3445df085575f2449189572e2 /llvm/lib/Support/Debug.cpp | |
parent | 1f31fe529e3509e41ff2baed611bcd0083f86d57 (diff) | |
download | bcm5719-llvm-c089e406b9d7e654fda5e27f34b5747553d75d15.tar.gz bcm5719-llvm-c089e406b9d7e654fda5e27f34b5747553d75d15.zip |
Allow setting multiple debug types
Differential revision: https://reviews.llvm.org/D28109
llvm-svn: 290597
Diffstat (limited to 'llvm/lib/Support/Debug.cpp')
-rw-r--r-- | llvm/lib/Support/Debug.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/llvm/lib/Support/Debug.cpp b/llvm/lib/Support/Debug.cpp index 323d53279b4..a78acf0f69c 100644 --- a/llvm/lib/Support/Debug.cpp +++ b/llvm/lib/Support/Debug.cpp @@ -63,10 +63,14 @@ bool isCurrentDebugType(const char *DebugType) { /// debug output to be produced. /// 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. |