mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-21 06:30:16 +00:00
Added a comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106063 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c9ada472c8
commit
cad22ad0bf
@ -2353,6 +2353,11 @@ DbgScope *DwarfDebug::getOrCreateDbgScope(const MDNode *Scope, const MDNode *Inl
|
||||
|
||||
if (!WScope->getParent()) {
|
||||
StringRef SPName = DISubprogram(Scope).getLinkageName();
|
||||
// We used to check only for a linkage name, but that fails
|
||||
// since we began omitting the linkage name for private
|
||||
// functions. The new way is to check for the name in metadata,
|
||||
// but that's not supported in old .ll test cases. Ergo, we
|
||||
// check both.
|
||||
if (SPName == Asm->MF->getFunction()->getName() ||
|
||||
DISubprogram(Scope).getFunction() == Asm->MF->getFunction())
|
||||
CurrentFnDbgScope = WScope;
|
||||
|
Loading…
x
Reference in New Issue
Block a user