diff options
| author | Devang Patel <dpatel@apple.com> | 2010-01-11 18:52:33 +0000 |
|---|---|---|
| committer | Devang Patel <dpatel@apple.com> | 2010-01-11 18:52:33 +0000 |
| commit | 8992323bb9c16e8a5600cf78cd8a9fcbfed116b5 (patch) | |
| tree | 38ce240f20ab1994dd96496d17b9a6bee8789e0b /llvm/lib/CodeGen | |
| parent | bb91767b824cf1b78cb551c308ca51f8da4e4377 (diff) | |
| download | bcm5719-llvm-8992323bb9c16e8a5600cf78cd8a9fcbfed116b5.tar.gz bcm5719-llvm-8992323bb9c16e8a5600cf78cd8a9fcbfed116b5.zip | |
s/NextValueNo/NextMDValueNo while processing metadata.
llvm-svn: 93165
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index f02410c8c49..1ef3befe0bc 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -2138,13 +2138,14 @@ void DwarfDebug::endFunction(MachineFunction *MF) { } // Clear debug info - CurrentFnDbgScope = NULL; - DbgScopeMap.clear(); - DbgScopeBeginMap.clear(); - DbgScopeEndMap.clear(); - ConcreteScopes.clear(); - AbstractScopesList.clear(); - + if (CurrentFnDbgScope) { + CurrentFnDbgScope = NULL; + DbgScopeMap.clear(); + DbgScopeBeginMap.clear(); + DbgScopeEndMap.clear(); + ConcreteScopes.clear(); + AbstractScopesList.clear(); + } Lines.clear(); if (TimePassesIsEnabled) |

