diff options
author | Adrian Prantl <aprantl@apple.com> | 2014-02-25 23:42:11 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2014-02-25 23:42:11 +0000 |
commit | bf455c5ae2399dc182f73c961cc68e9342f5ae86 (patch) | |
tree | e746e546ab84f0d0f40737bf5d8ea5d62608d3ff /lib/IR | |
parent | e8aeccef15b7ff0532c1bb5e334dc1e86383dd80 (diff) | |
download | llvm-bf455c5ae2399dc182f73c961cc68e9342f5ae86.tar.gz llvm-bf455c5ae2399dc182f73c961cc68e9342f5ae86.tar.bz2 llvm-bf455c5ae2399dc182f73c961cc68e9342f5ae86.tar.xz |
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
Diffstat (limited to 'lib/IR')
-rw-r--r-- | lib/IR/DebugInfo.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/IR/DebugInfo.cpp b/lib/IR/DebugInfo.cpp index f7215dc51e..0617f672e6 100644 --- a/lib/IR/DebugInfo.cpp +++ b/lib/IR/DebugInfo.cpp @@ -45,6 +45,7 @@ bool DIDescriptor::Verify() const { DILexicalBlockFile(DbgNode).Verify() || DISubrange(DbgNode).Verify() || DIEnumerator(DbgNode).Verify() || DIObjCProperty(DbgNode).Verify() || + DIUnspecifiedParameter(DbgNode).Verify() || DITemplateTypeParameter(DbgNode).Verify() || DITemplateValueParameter(DbgNode).Verify() || DIImportedEntity(DbgNode).Verify()); @@ -607,6 +608,11 @@ bool DILexicalBlockFile::Verify() const { 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. bool DITemplateTypeParameter::Verify() const { return isTemplateTypeParameter() && DbgNode->getNumOperands() == 7; |