Make all the Function implementations different so the compiler won't share them.
authorJim Ingham <jingham@apple.com>
Fri, 26 Aug 2016 01:27:50 +0000 (01:27 +0000)
committerJim Ingham <jingham@apple.com>
Fri, 26 Aug 2016 01:27:50 +0000 (01:27 +0000)
commit1bf7d30469dae7d5e0c3303273c0e2411a2c406c
tree60d56bbb7c487724a74546e4a3fcaf15cc25e2bb
parent03e8e60e367d0d225f9aff869ee3d6a3e2aee9f2
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
lldb/packages/Python/lldbsuite/test/lang/cpp/breakpoint-commands/TestCPPBreakpointCommands.py
lldb/packages/Python/lldbsuite/test/lang/cpp/breakpoint-commands/nested.cpp