diff options
author | Jim Ingham <jingham@apple.com> | 2016-08-26 01:27:50 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2016-08-26 01:27:50 +0000 |
commit | 1bf7d30469dae7d5e0c3303273c0e2411a2c406c (patch) | |
tree | 60d56bbb7c487724a74546e4a3fcaf15cc25e2bb /lldb/packages/Python/lldbsuite/test/lang/cpp/breakpoint-commands/nested.cpp | |
parent | 03e8e60e367d0d225f9aff869ee3d6a3e2aee9f2 (diff) | |
download | bcm5719-llvm-1bf7d30469dae7d5e0c3303273c0e2411a2c406c.tar.gz bcm5719-llvm-1bf7d30469dae7d5e0c3303273c0e2411a2c406c.zip |
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.
<rdar://problem/27001915>
llvm-svn: 279800
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lang/cpp/breakpoint-commands/nested.cpp')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/lang/cpp/breakpoint-commands/nested.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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; |