codeparser: simplify how we compare the called node names
authorChristopher Larson <kergoth@gmail.com>
Fri, 28 Oct 2011 05:37:11 +0000 (22:37 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 10 Nov 2011 11:44:28 +0000 (11:44 +0000)
commit4ce364829c60746c92ee1797dbaba2df3a50eac6
treef18b8b5ef25987250ff679ef29f55c834440b18f
parent6d77f28aa97ff55ba7c665875fb9e1a5adfb954e
codeparser: simplify how we compare the called node names

With the previous method, using the compare_name methods, we split the
requested match name by '.', reversed it, then compared them piecemeal
during the node traversal. The new method walks the nodes and hands back
the name of what's being called, and then we check that. This also
consolidates the two different implementations of traversal of the
attribute/name nodes (one in compare_name, one for the execs).

(Bitbake rev: 84e535b5165c7e936c5b1486bdf4626ed3649f5f)

Signed-off-by: Christopher Larson <kergoth@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/codeparser.py