diff options
author | Manman Ren <manman.ren@gmail.com> | 2014-11-21 19:55:23 +0000 |
---|---|---|
committer | Manman Ren <manman.ren@gmail.com> | 2014-11-21 19:55:23 +0000 |
commit | f0a582bada4e77e2b06a0f37b7cf06703971f26f (patch) | |
tree | 5f94213b63ea75dbfe111ee6b20601c39c894b15 /llvm/lib/IR/DebugInfo.cpp | |
parent | d2b9a1b890b47d79d158a08ece2f39840b890d0e (diff) | |
download | bcm5719-llvm-f0a582bada4e77e2b06a0f37b7cf06703971f26f.tar.gz bcm5719-llvm-f0a582bada4e77e2b06a0f37b7cf06703971f26f.zip |
Debug Info: revert r222195, r222210 and r222239.
This is no longer needed after David's fix at r222377 + r222485.
rdar://18958417
llvm-svn: 222563
Diffstat (limited to 'llvm/lib/IR/DebugInfo.cpp')
-rw-r--r-- | llvm/lib/IR/DebugInfo.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/IR/DebugInfo.cpp b/llvm/lib/IR/DebugInfo.cpp index bb5161dcb90..bf3bb8adb0a 100644 --- a/llvm/lib/IR/DebugInfo.cpp +++ b/llvm/lib/IR/DebugInfo.cpp @@ -567,8 +567,8 @@ bool DIGlobalVariable::Verify() const { if (getDisplayName().empty()) return false; - // Make sure context @ field 1 is a ScopeRef. - if (!fieldIsScopeRef(DbgNode, 1)) + // Make sure context @ field 1 is an MDNode. + if (!fieldIsMDNode(DbgNode, 1)) return false; // Make sure that type @ field 3 is a DITypeRef. if (!fieldIsTypeRef(DbgNode, 3)) @@ -1005,7 +1005,7 @@ void DebugInfoFinder::processModule(const Module &M) { for (unsigned i = 0, e = GVs.getNumElements(); i != e; ++i) { DIGlobalVariable DIG(GVs.getElement(i)); if (addGlobalVariable(DIG)) { - processScope(DIG.getContext().resolve(TypeIdentifierMap)); + processScope(DIG.getContext()); processType(DIG.getType().resolve(TypeIdentifierMap)); } } |