Lines Matching +full:termination +full:- +full:current
1 //===-- Debug.cpp - An easy way to add debug output to your code ----------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
14 // be enabled automatically if you specify '-debug' on the command-line.
17 // can specify '-debug-only=foo' to enable JUST the debug information for the
20 // When compiling without assertions, the -debug-* options and all code in
24 //===----------------------------------------------------------------------===//
44 /// Exported boolean set by the -debug option.
51 /// with the -debug-only=X option.
53 if (CurrentDebugType->empty()) in isCurrentDebugType()
64 /// Set the current debug type, as if the -debug-only=X
75 CurrentDebugType->clear(); in setCurrentDebugTypes()
77 CurrentDebugType->push_back(Types[T]); in setCurrentDebugTypes()
81 // All Debug.h functionality is a no-op in NDEBUG mode.
92 // -debug-buffer-size - Buffer the last N characters of debug output
93 //until program termination.
97 "debug-buffer-size", in call()
99 "until program termination. " in call()
100 "[default 0 -- immediate print-out]"), in call()
106 // -debug - Command line option to enable the DEBUG statements in the passes.
119 StringRef(Val).split(dbgTypes, ',', -1, false); in operator =()
121 CurrentDebugType->push_back(std::string(dbgType)); in operator =()
132 "debug-only", in call()
151 // Signal handlers - dump debug output on termination.
162 /// dbgs - Return a circular-buffered debug stream.
164 // Do one-time initialization in a thread-safe way. in dbgs()
172 // TODO: Add a handler for SIGUSER1-type signals so the user can in dbgs()
186 /// dbgs - Return errs().
194 /// EnableDebugBuffering - Turn on signal handler installation.