[llvm] r233661 - DebugInfo: Hide isScopeRef() and isTypeRef() behind NDEBUG
Duncan P. N. Exon Smith
dexonsmith at apple.com
Mon Mar 30 18:47:55 PDT 2015
Author: dexonsmith
Date: Mon Mar 30 20:47:55 2015
New Revision: 233661
URL: http://llvm.org/viewvc/llvm-project?rev=233661&view=rev
Log:
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
Modified:
llvm/trunk/lib/IR/DebugInfo.cpp
Modified: llvm/trunk/lib/IR/DebugInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/DebugInfo.cpp?rev=233661&r1=233660&r2=233661&view=diff
==============================================================================
--- llvm/trunk/lib/IR/DebugInfo.cpp (original)
+++ llvm/trunk/lib/IR/DebugInfo.cpp Mon Mar 30 20:47:55 2015
@@ -223,6 +223,7 @@ void DIDescriptor::replaceAllUsesWith(MD
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 *M
return isa<MDScope>(MD);
}
-#ifndef NDEBUG
/// \brief Check if a value can be a DescriptorRef.
static bool isDescriptorRef(const Metadata *MD) {
if (!MD)
More information about the llvm-commits
mailing list