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 | 23598502efa6a0c2daaa6c6efc519867c8445e8f (patch) | |
tree | 4c875aa74d6213bad1edc4b382ae8a56bb9b3821 /lib/CodeGen | |
parent | c30837d6c1ee814ba62e32848e1d2cbfb7385953 (diff) | |
download | external_llvm-23598502efa6a0c2daaa6c6efc519867c8445e8f.zip external_llvm-23598502efa6a0c2daaa6c6efc519867c8445e8f.tar.gz external_llvm-23598502efa6a0c2daaa6c6efc519867c8445e8f.tar.bz2 |
s/NextValueNo/NextMDValueNo while processing metadata.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93165 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index f02410c..1ef3bef 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/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) |