[Lldb-commits] [lldb] r140662 - /lldb/trunk/source/Symbol/SymbolContext.cpp

Jim Ingham jingham at apple.com
Tue Sep 27 16:59:35 PDT 2011


Author: jingham
Date: Tue Sep 27 18:59:35 2011
New Revision: 140662

URL: http://llvm.org/viewvc/llvm-project?rev=140662&view=rev
Log:
Need to go to the containing inline block to get the inline name right.

Modified:
    lldb/trunk/source/Symbol/SymbolContext.cpp

Modified: lldb/trunk/source/Symbol/SymbolContext.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Symbol/SymbolContext.cpp?rev=140662&r1=140661&r2=140662&view=diff
==============================================================================
--- lldb/trunk/source/Symbol/SymbolContext.cpp (original)
+++ lldb/trunk/source/Symbol/SymbolContext.cpp Tue Sep 27 18:59:35 2011
@@ -582,9 +582,14 @@
     {
         if (block)
         {
-            const InlineFunctionInfo *inline_info = block->GetInlinedFunctionInfo();
-            if (inline_info)
-                return inline_info->GetName(); 
+            Block *inlined_block = block->GetContainingInlinedBlock();
+            
+            if (inlined_block)
+            {
+                const InlineFunctionInfo *inline_info = inlined_block->GetInlinedFunctionInfo();
+                if (inline_info)
+                    return inline_info->GetName();
+            }
         }
         return function->GetMangled().GetName(preference);
     }





More information about the lldb-commits mailing list