[ModuleInliner] Move getInlineCostWrapper to an anonymous namespace (NFC)
authorKazu Hirata <kazu@google.com>
Sun, 18 Sep 2022 21:09:21 +0000 (14:09 -0700)
committerKazu Hirata <kazu@google.com>
Sun, 18 Sep 2022 21:09:21 +0000 (14:09 -0700)
commit00d982699bcc36408042cd749e34fb09a7c8f93f
treee656879cd06a8d6569dd4081c1824f8930640534
parentf8a37a6ce67470f9f6b3a4dacb65c637c2958b8d
[ModuleInliner] Move getInlineCostWrapper to an anonymous namespace (NFC)

This patch moves getInlineCostWrapper to an anonymous namespace.
While I am at it, I'm moving the function closer to the beginning of
the file so that I can use it elsewhere in the file without a forward
declaration.
llvm/lib/Analysis/InlineOrder.cpp