mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Any debug info symbol is only valid if atleast one compile unit is seen.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62294 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2836c283bb
commit
61c6bf37ef
@ -3083,6 +3083,10 @@ public:
|
||||
|
||||
/// ValidDebugInfo - Return true if V represents valid debug info value.
|
||||
bool ValidDebugInfo(Value *V) {
|
||||
|
||||
if (!shouldEmit)
|
||||
return false;
|
||||
|
||||
GlobalVariable *GV = getGlobalVariable(V);
|
||||
if (!GV)
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user