summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorFlorian Hahn <florian.hahn@arm.com>2017-07-31 16:11:43 +0000
committerFlorian Hahn <florian.hahn@arm.com>2017-07-31 16:11:43 +0000
commit94b8a87c8ec58489931d48bdb7684bb92877ca02 (patch)
tree67117b5f6a4b36753b5ce34de6d8c675324c1b54 /llvm/lib/CodeGen
parent53160cdc45deaa7bb0286442d01c2eb63c770542 (diff)
downloadbcm5719-llvm-94b8a87c8ec58489931d48bdb7684bb92877ca02.tar.gz
bcm5719-llvm-94b8a87c8ec58489931d48bdb7684bb92877ca02.zip
Extend ifdefs to more unused helper functions.
This fixes a buildbot failure with -Werror introduced by r309553 llvm-svn: 309572
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/LiveDebugVariables.cpp2
1 files changed, 1 insertions, 1 deletions
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<DILocalVariable>(Variable);
OS << "!\"";
OpenPOWER on IntegriCloud