aboutsummaryrefslogtreecommitdiff
path: root/lib/Option/Option.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Option/Option.cpp')
-rw-r--r--lib/Option/Option.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Option/Option.cpp b/lib/Option/Option.cpp
index 5eb179fbd257..736b939fe80b 100644
--- a/lib/Option/Option.cpp
+++ b/lib/Option/Option.cpp
@@ -83,7 +83,9 @@ void Option::print(raw_ostream &O) const {
O << ">\n";
}
+#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
LLVM_DUMP_METHOD void Option::dump() const { print(dbgs()); }
+#endif
bool Option::matches(OptSpecifier Opt) const {
// Aliases are never considered in matching, look through them.