mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-10 04:33:40 +00:00
better check for version
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32045 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d0a6a7a030
commit
2bbff6d173
@ -1390,11 +1390,23 @@ bool DIVerifier::Verify(GlobalVariable *GV) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get the Tag
|
// Get the Tag.
|
||||||
unsigned Tag = DebugInfoDesc::TagFromGlobal(GV);
|
unsigned Tag = DebugInfoDesc::TagFromGlobal(GV);
|
||||||
|
|
||||||
// Check for user defined descriptors.
|
// Check for user defined descriptors.
|
||||||
if (Tag == DW_TAG_invalid) return true;
|
if (Tag == DW_TAG_invalid) {
|
||||||
|
ValiditySlot = Valid;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Get the Version.
|
||||||
|
unsigned Version = DebugInfoDesc::VersionFromGlobal(GV);
|
||||||
|
|
||||||
|
// Check for version mismatch.
|
||||||
|
if (Version != LLVMDebugVersion) {
|
||||||
|
ValiditySlot = Invalid;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// Construct an empty DebugInfoDesc.
|
// Construct an empty DebugInfoDesc.
|
||||||
DebugInfoDesc *DD = DebugInfoDesc::DescFactory(Tag);
|
DebugInfoDesc *DD = DebugInfoDesc::DescFactory(Tag);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user