[llvm-commits] [llvm] r106063 - /llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
Stuart Hastings
stuart at apple.com
Tue Jun 15 16:06:30 PDT 2010
Author: stuart
Date: Tue Jun 15 18:06:30 2010
New Revision: 106063
URL: http://llvm.org/viewvc/llvm-project?rev=106063&view=rev
Log:
Added a comment.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp?rev=106063&r1=106062&r2=106063&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Tue Jun 15 18:06:30 2010
@@ -2353,6 +2353,11 @@
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;
More information about the llvm-commits
mailing list