aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-06-28 20:53:04 +0000
committerDevang Patel <dpatel@apple.com>2010-06-28 20:53:04 +0000
commit0dd4558e7d0d2191c3d69e61e6a3e349dd605c80 (patch)
treed9ec0a3dc2c7ce804953f7f18b50f8f5ce891db0 /lib/CodeGen
parentd459f457b8c855030217d878988062918dc71e13 (diff)
downloadexternal_llvm-0dd4558e7d0d2191c3d69e61e6a3e349dd605c80.zip
external_llvm-0dd4558e7d0d2191c3d69e61e6a3e349dd605c80.tar.gz
external_llvm-0dd4558e7d0d2191c3d69e61e6a3e349dd605c80.tar.bz2
Include inlined function in list of processed subprograms.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107065 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfDebug.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 265296a..9ff929f 100644
--- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -1386,7 +1386,6 @@ static bool isSubprogramContext(const MDNode *Context) {
/// If there are global variables in this scope then create and insert
/// DIEs for these variables.
DIE *DwarfDebug::updateSubprogramScopeDIE(const MDNode *SPNode) {
- ProcessedSPNodes.insert(SPNode);
CompileUnit *SPCU = getCompileUnit(SPNode);
DIE *SPDie = SPCU->getDIE(SPNode);
assert(SPDie && "Unable to find subprogram DIE!");
@@ -1692,6 +1691,7 @@ DIE *DwarfDebug::constructScopeDIE(DbgScope *Scope) {
if (Scope->getInlinedAt())
ScopeDIE = constructInlinedScopeDIE(Scope);
else if (DS.isSubprogram()) {
+ ProcessedSPNodes.insert(DS);
if (Scope->isAbstractScope())
ScopeDIE = getCompileUnit(DS)->getDIE(DS);
else