mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-11 21:38:19 +00:00
Pass llvm/test/Regression/CodeGen/Generic/debug-info.ll.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27158 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1338,6 +1338,13 @@ bool DIVerifier::Verify(GlobalVariable *GV) {
|
|||||||
// Assume validity for the time being (recursion.)
|
// Assume validity for the time being (recursion.)
|
||||||
ValiditySlot = Valid;
|
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
|
// Get the Tag
|
||||||
unsigned Tag = DebugInfoDesc::TagFromGlobal(GV);
|
unsigned Tag = DebugInfoDesc::TagFromGlobal(GV);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user