1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

Pass llvm/test/Regression/CodeGen/Generic/debug-info.ll.

llvm-svn: 27158
This commit is contained in:
Jim Laskey 2006-03-27 01:51:47 +00:00
parent 3d518334b9
commit c195040bcf

View File

@ -1337,6 +1337,13 @@ bool DIVerifier::Verify(GlobalVariable *GV) {
// Assume validity for the time being (recursion.)
ValiditySlot = Valid;
// Make sure the global is internal or link once (anchor.)
if (GV->getLinkage() != GlobalValue::InternalLinkage &&
GV->getLinkage() != GlobalValue::LinkOnceLinkage) {
ValiditySlot = Invalid;
return false;
}
// Get the Tag
unsigned Tag = DebugInfoDesc::TagFromGlobal(GV);