diff options
author | Stuart Hastings <stuart@apple.com> | 2010-06-15 23:06:30 +0000 |
---|---|---|
committer | Stuart Hastings <stuart@apple.com> | 2010-06-15 23:06:30 +0000 |
commit | cad22ad0bf1f1d5a40f1bc8ebe02d4edc25e2553 (patch) | |
tree | 32fcb817d56257577d75b5b6eb723edb3b8264c8 /lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
parent | c9ada472c87d262713b0d2df0a225e867533586c (diff) |
Added a comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106063 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 897a19d91c..4705a0eed3 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -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; |