From 36bf506ad3c99a309ca8bd73bd03563d8d068ac0 Mon Sep 17 00:00:00 2001 From: Roman Divacky Date: Wed, 4 Nov 2009 14:58:56 +0000 Subject: Update LLVM to r86025. --- lib/Support/Debug.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'lib/Support/Debug.cpp') diff --git a/lib/Support/Debug.cpp b/lib/Support/Debug.cpp index 71ff411def2b0..d4954b6e40b2a 100644 --- a/lib/Support/Debug.cpp +++ b/lib/Support/Debug.cpp @@ -57,7 +57,18 @@ DebugOnly("debug-only", cl::desc("Enable a specific type of debug output"), bool llvm::isCurrentDebugType(const char *DebugType) { return CurrentDebugType.empty() || DebugType == CurrentDebugType; } + +/// SetCurrentDebugType - 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 SetCurrentDebugType(const char *Type) { + CurrentDebugType = Type; +} + #else // Avoid "has no symbols" warning. +namespace llvm { int Debug_dummy = 0; +} #endif -- cgit v1.2.3