diff options
| author | Devang Patel <dpatel@apple.com> | 2010-03-08 19:20:38 +0000 |
|---|---|---|
| committer | Devang Patel <dpatel@apple.com> | 2010-03-08 19:20:38 +0000 |
| commit | 0ef3fa6aabc80995c8a0bd829c85c89ef2d4c32d (patch) | |
| tree | ac2bdb8ae1dae16aa3bf10c28e20c5a0ff80a1f9 /include | |
| parent | dd6fbd11368b9d9ae82f8620a4aa7af9b8baf47c (diff) | |
| download | external_llvm-0ef3fa6aabc80995c8a0bd829c85c89ef2d4c32d.zip external_llvm-0ef3fa6aabc80995c8a0bd829c85c89ef2d4c32d.tar.gz external_llvm-0ef3fa6aabc80995c8a0bd829c85c89ef2d4c32d.tar.bz2 | |
Revert r97947.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97963 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
| -rw-r--r-- | include/llvm/Analysis/DebugInfo.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/include/llvm/Analysis/DebugInfo.h b/include/llvm/Analysis/DebugInfo.h index 14c3e1b..f105c20 100644 --- a/include/llvm/Analysis/DebugInfo.h +++ b/include/llvm/Analysis/DebugInfo.h @@ -67,7 +67,7 @@ namespace llvm { explicit DIDescriptor() : DbgNode(0) {} explicit DIDescriptor(MDNode *N) : DbgNode(N) {} - bool Verify() const { return DbgNode != 0; } + bool isNull() const { return DbgNode == 0; } MDNode *getNode() const { return DbgNode; } @@ -246,9 +246,7 @@ namespace llvm { bool isArtificial() const { return (getFlags() & FlagArtificial) != 0; } - bool isValid() const { - return DbgNode && (isBasicType() || isDerivedType() || isCompositeType()); - } + /// dump - print type. void dump() const; }; @@ -362,7 +360,7 @@ namespace llvm { /// DIType or as DICompositeType. StringRef getReturnTypeName() const { DICompositeType DCT(getFieldAs<DICompositeType>(8)); - if (DCT.Verify()) { + if (!DCT.isNull()) { DIArray A = DCT.getTypeArray(); DIType T(A.getElement(0).getNode()); return T.getName(); @@ -496,7 +494,6 @@ namespace llvm { DILocation getOrigLocation() const { return getFieldAs<DILocation>(3); } StringRef getFilename() const { return getScope().getFilename(); } StringRef getDirectory() const { return getScope().getDirectory(); } - bool Verify() const; }; /// DIFactory - This object assists with the construction of the various |
