summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LiveDebugVariables.cpp
diff options
context:
space:
mode:
authorFlorian Hahn <florian.hahn@arm.com>2017-07-31 16:29:00 +0000
committerFlorian Hahn <florian.hahn@arm.com>2017-07-31 16:29:00 +0000
commit1b09a37c0774b518ba4db4d048fd591b31b867a0 (patch)
treea621e22bef60b28366a943df0b03913a3aa2875c /llvm/lib/CodeGen/LiveDebugVariables.cpp
parent94b8a87c8ec58489931d48bdb7684bb92877ca02 (diff)
downloadbcm5719-llvm-1b09a37c0774b518ba4db4d048fd591b31b867a0.tar.gz
bcm5719-llvm-1b09a37c0774b518ba4db4d048fd591b31b867a0.zip
Extend ifndef to printDebugLoc.
GCC7 did not warn about that, but Clang does. llvm-svn: 309573
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugVariables.cpp')
-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 a974dc2f1c4..1dce1b3c8ed 100644
--- a/llvm/lib/CodeGen/LiveDebugVariables.cpp
+++ b/llvm/lib/CodeGen/LiveDebugVariables.cpp
@@ -329,6 +329,7 @@ public:
};
} // namespace
+#ifndef NDEBUG
static void printDebugLoc(const DebugLoc &DL, raw_ostream &CommentOS,
const LLVMContext &Ctx) {
if (!DL)
@@ -350,7 +351,6 @@ 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();
OpenPOWER on IntegriCloud