From 1bf7d30469dae7d5e0c3303273c0e2411a2c406c Mon Sep 17 00:00:00 2001 From: Jim Ingham Date: Fri, 26 Aug 2016 01:27:50 +0000 Subject: Make all the Function implementations different so the compiler won't share them. Clang on ARM64 was making the three Function methods with identical bodies have one implementation that was shared. That threw off the count of breakpoints, since we don't count as separate locations three functions with the same address. I also cleaned up the test case while I was at it. llvm-svn: 279800 --- .../Python/lldbsuite/test/lang/cpp/breakpoint-commands/nested.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lldb/packages/Python/lldbsuite/test/lang/cpp/breakpoint-commands/nested.cpp') diff --git a/lldb/packages/Python/lldbsuite/test/lang/cpp/breakpoint-commands/nested.cpp b/lldb/packages/Python/lldbsuite/test/lang/cpp/breakpoint-commands/nested.cpp index 29d4b4cb19e..740649622ca 100644 --- a/lldb/packages/Python/lldbsuite/test/lang/cpp/breakpoint-commands/nested.cpp +++ b/lldb/packages/Python/lldbsuite/test/lang/cpp/breakpoint-commands/nested.cpp @@ -11,7 +11,7 @@ namespace Foo int Function () { printf ("%s returning: %d.\n", __FUNCTION__, m_value); - return m_value; + return m_value + 1; } private: int m_value; @@ -24,7 +24,7 @@ namespace Foo int Function () { printf ("%s returning: %d.\n", __FUNCTION__, m_value); - return m_value; + return m_value + 2; } private: int m_value; @@ -34,7 +34,7 @@ namespace Foo int Function () { printf ("%s returning: %d.\n", __FUNCTION__, bar_value); - return bar_value; + return bar_value + 3; } } } @@ -46,7 +46,7 @@ public: int Function () { printf ("%s returning: %d.\n", __FUNCTION__, m_value); - return m_value; + return m_value + 4; } private: int m_value; -- cgit v1.2.3