mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233661 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
12b14d9a76
commit
a04d764104
@ -223,6 +223,7 @@ void DIDescriptor::replaceAllUsesWith(MDNode *D) {
|
|||||||
bool DICompileUnit::Verify() const { return isCompileUnit(); }
|
bool DICompileUnit::Verify() const { return isCompileUnit(); }
|
||||||
bool DIObjCProperty::Verify() const { return isObjCProperty(); }
|
bool DIObjCProperty::Verify() const { return isObjCProperty(); }
|
||||||
|
|
||||||
|
#ifndef NDEBUG
|
||||||
/// \brief Check if a value can be a reference to a type.
|
/// \brief Check if a value can be a reference to a type.
|
||||||
static bool isTypeRef(const Metadata *MD) {
|
static bool isTypeRef(const Metadata *MD) {
|
||||||
if (!MD)
|
if (!MD)
|
||||||
@ -241,7 +242,6 @@ static bool isScopeRef(const Metadata *MD) {
|
|||||||
return isa<MDScope>(MD);
|
return isa<MDScope>(MD);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef NDEBUG
|
|
||||||
/// \brief Check if a value can be a DescriptorRef.
|
/// \brief Check if a value can be a DescriptorRef.
|
||||||
static bool isDescriptorRef(const Metadata *MD) {
|
static bool isDescriptorRef(const Metadata *MD) {
|
||||||
if (!MD)
|
if (!MD)
|
||||||
|
Loading…
Reference in New Issue
Block a user