summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/DebugInfo.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-03-31 01:47:55 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-03-31 01:47:55 +0000
commit3b960c9da0fc42f88d3192508ecfc126529f1a6d (patch)
treea9a8c9e47e0ac20dec9540e92c39376c1a55d296 /llvm/lib/IR/DebugInfo.cpp
parentcd7fd9c04e76543b7805e3a4644836c7aae0bdef (diff)
downloadbcm5719-llvm-3b960c9da0fc42f88d3192508ecfc126529f1a6d.tar.gz
bcm5719-llvm-3b960c9da0fc42f88d3192508ecfc126529f1a6d.zip
DebugInfo: Hide isScopeRef() and isTypeRef() behind NDEBUG
The copies of these in `lib/IR/DebugInfo.cpp` are apparently [1] only used in assertions now, so hide them behind `#ifndef NDEBUG`. [1]: http://lab.llvm.org:8011/builders/lld-x86_64-darwin13/builds/9238 llvm-svn: 233661
Diffstat (limited to 'llvm/lib/IR/DebugInfo.cpp')
-rw-r--r--llvm/lib/IR/DebugInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/DebugInfo.cpp b/llvm/lib/IR/DebugInfo.cpp
index 9381a5b580e..aa61283918f 100644
--- a/llvm/lib/IR/DebugInfo.cpp
+++ b/llvm/lib/IR/DebugInfo.cpp
@@ -223,6 +223,7 @@ void DIDescriptor::replaceAllUsesWith(MDNode *D) {
bool DICompileUnit::Verify() const { return isCompileUnit(); }
bool DIObjCProperty::Verify() const { return isObjCProperty(); }
+#ifndef NDEBUG
/// \brief Check if a value can be a reference to a type.
static bool isTypeRef(const Metadata *MD) {
if (!MD)
@@ -241,7 +242,6 @@ static bool isScopeRef(const Metadata *MD) {
return isa<MDScope>(MD);
}
-#ifndef NDEBUG
/// \brief Check if a value can be a DescriptorRef.
static bool isDescriptorRef(const Metadata *MD) {
if (!MD)
OpenPOWER on IntegriCloud