projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f15485a
)
Pass llvm/test/Regression/CodeGen/Generic/debug-info.ll.
author
Jim Laskey
<jlaskey@mac.com>
Mon, 27 Mar 2006 01:51:47 +0000
(
01:51
+0000)
committer
Jim Laskey
<jlaskey@mac.com>
Mon, 27 Mar 2006 01:51:47 +0000
(
01:51
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27158
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/MachineDebugInfo.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/MachineDebugInfo.cpp
b/lib/CodeGen/MachineDebugInfo.cpp
index 83494ecc6560395c6c8e68736d53174560c3d7b8..eb85f27a4750a885ef8d3ef81fe312e5df528fca 100644
(file)
--- a/
lib/CodeGen/MachineDebugInfo.cpp
+++ b/
lib/CodeGen/MachineDebugInfo.cpp
@@
-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);