From 94b8a87c8ec58489931d48bdb7684bb92877ca02 Mon Sep 17 00:00:00 2001 From: Florian Hahn Date: Mon, 31 Jul 2017 16:11:43 +0000 Subject: Extend ifdefs to more unused helper functions. This fixes a buildbot failure with -Werror introduced by r309553 llvm-svn: 309572 --- llvm/lib/CodeGen/LiveDebugVariables.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/LiveDebugVariables.cpp') diff --git a/llvm/lib/CodeGen/LiveDebugVariables.cpp b/llvm/lib/CodeGen/LiveDebugVariables.cpp index a6dc5669f87..a974dc2f1c4 100644 --- a/llvm/lib/CodeGen/LiveDebugVariables.cpp +++ b/llvm/lib/CodeGen/LiveDebugVariables.cpp @@ -350,6 +350,7 @@ static void printDebugLoc(const DebugLoc &DL, raw_ostream &CommentOS, CommentOS << " ]"; } +#ifndef NDEBUG static void printExtendedName(raw_ostream &OS, const DILocalVariable *V, const DILocation *DL) { const LLVMContext &Ctx = V->getContext(); @@ -365,7 +366,6 @@ static void printExtendedName(raw_ostream &OS, const DILocalVariable *V, } } -#ifndef NDEBUG void UserValue::print(raw_ostream &OS, const TargetRegisterInfo *TRI) { auto *DV = cast(Variable); OS << "!\""; -- cgit v1.2.3