mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-07 14:33:15 +00:00
Add DIUnspecifiedParameter, so we can pretty-print it.
This will be used for testcases in CFE. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202207 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e8aeccef15
commit
bf455c5ae2
@ -553,6 +553,13 @@ public:
|
|||||||
bool Verify() const;
|
bool Verify() const;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/// DIUnspecifiedParameter - This is a wrapper for unspecified parameters.
|
||||||
|
class DIUnspecifiedParameter : public DIDescriptor {
|
||||||
|
public:
|
||||||
|
explicit DIUnspecifiedParameter(const MDNode *N = 0) : DIDescriptor(N) {}
|
||||||
|
bool Verify() const;
|
||||||
|
};
|
||||||
|
|
||||||
/// DITemplateTypeParameter - This is a wrapper for template type parameter.
|
/// DITemplateTypeParameter - This is a wrapper for template type parameter.
|
||||||
class DITemplateTypeParameter : public DIDescriptor {
|
class DITemplateTypeParameter : public DIDescriptor {
|
||||||
public:
|
public:
|
||||||
|
@ -45,6 +45,7 @@ bool DIDescriptor::Verify() const {
|
|||||||
DILexicalBlockFile(DbgNode).Verify() ||
|
DILexicalBlockFile(DbgNode).Verify() ||
|
||||||
DISubrange(DbgNode).Verify() || DIEnumerator(DbgNode).Verify() ||
|
DISubrange(DbgNode).Verify() || DIEnumerator(DbgNode).Verify() ||
|
||||||
DIObjCProperty(DbgNode).Verify() ||
|
DIObjCProperty(DbgNode).Verify() ||
|
||||||
|
DIUnspecifiedParameter(DbgNode).Verify() ||
|
||||||
DITemplateTypeParameter(DbgNode).Verify() ||
|
DITemplateTypeParameter(DbgNode).Verify() ||
|
||||||
DITemplateValueParameter(DbgNode).Verify() ||
|
DITemplateValueParameter(DbgNode).Verify() ||
|
||||||
DIImportedEntity(DbgNode).Verify());
|
DIImportedEntity(DbgNode).Verify());
|
||||||
@ -607,6 +608,11 @@ bool DILexicalBlockFile::Verify() const {
|
|||||||
return isLexicalBlockFile() && DbgNode->getNumOperands() == 3;
|
return isLexicalBlockFile() && DbgNode->getNumOperands() == 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// \brief Verify that an unspecified parameter descriptor is well formed.
|
||||||
|
bool DIUnspecifiedParameter::Verify() const {
|
||||||
|
return isUnspecifiedParameter() && DbgNode->getNumOperands() == 1;
|
||||||
|
}
|
||||||
|
|
||||||
/// \brief Verify that the template type parameter descriptor is well formed.
|
/// \brief Verify that the template type parameter descriptor is well formed.
|
||||||
bool DITemplateTypeParameter::Verify() const {
|
bool DITemplateTypeParameter::Verify() const {
|
||||||
return isTemplateTypeParameter() && DbgNode->getNumOperands() == 7;
|
return isTemplateTypeParameter() && DbgNode->getNumOperands() == 7;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user