From 1a56ac790a9fd61bb4369f58031807ef66b048eb Mon Sep 17 00:00:00 2001 From: David Bolvansky Date: Mon, 6 Aug 2018 04:45:46 +0000 Subject: [NFC] Fixed unused function warning llvm-svn: 338986 --- llvm/lib/Transforms/IPO/Inliner.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'llvm/lib/Transforms/IPO/Inliner.cpp') diff --git a/llvm/lib/Transforms/IPO/Inliner.cpp b/llvm/lib/Transforms/IPO/Inliner.cpp index fdf47b7bd62..95f3dbbf217 100644 --- a/llvm/lib/Transforms/IPO/Inliner.cpp +++ b/llvm/lib/Transforms/IPO/Inliner.cpp @@ -388,11 +388,13 @@ RemarkT &operator<<(RemarkT &&R, const InlineCost &IC) { return R; } +#ifndef NDEBUG static std::string inlineCostStr(const InlineCost &IC) { std::stringstream Remark; Remark << IC; return Remark.str(); } +#endif /// Return the cost only if the inliner should attempt to inline at the given /// CallSite. If we return the cost, we will emit an optimisation remark later -- cgit v1.2.3