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 | 9182e2711677e7eceaed04136fadca5e83455f4f (patch) | |
| tree | 32fcb817d56257577d75b5b6eb723edb3b8264c8 | |
| parent | ce9cd22d094d9d0ff4f12b6f557e4af631258e38 (diff) | |
| download | external_llvm-9182e2711677e7eceaed04136fadca5e83455f4f.zip external_llvm-9182e2711677e7eceaed04136fadca5e83455f4f.tar.gz external_llvm-9182e2711677e7eceaed04136fadca5e83455f4f.tar.bz2 | |
Added a comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106063 91177308-0d34-0410-b5e6-96231b3b80d8
| -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 897a19d..4705a0e 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; |
