mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-04 21:31:03 +00:00
Add DINameSpace::Verify().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103318 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
20eb256006
commit
47e2265a30
@ -541,6 +541,7 @@ namespace llvm {
|
||||
return F.getCompileUnit();
|
||||
}
|
||||
unsigned getLineNumber() const { return getUnsignedField(4); }
|
||||
bool Verify() const;
|
||||
};
|
||||
|
||||
/// DILocation - This object holds location information. This object
|
||||
|
@ -350,6 +350,17 @@ bool DILocation::Verify() const {
|
||||
return DbgNode->getNumOperands() == 4;
|
||||
}
|
||||
|
||||
/// Verify - Verify that a namespace descriptor is well formed.
|
||||
bool DINameSpace::Verify() const {
|
||||
if (!DbgNode)
|
||||
return false;
|
||||
if (getName().empty())
|
||||
return false;
|
||||
if (!getCompileUnit().Verify())
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
/// getOriginalTypeSize - If this type is derived from a base type then
|
||||
/// return base type size.
|
||||
uint64_t DIDerivedType::getOriginalTypeSize() const {
|
||||
|
Loading…
x
Reference in New Issue
Block a user