summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/IPO/Inliner.cpp
diff options
context:
space:
mode:
authorDavid Bolvansky <david.bolvansky@gmail.com>2018-08-06 04:45:46 +0000
committerDavid Bolvansky <david.bolvansky@gmail.com>2018-08-06 04:45:46 +0000
commit1a56ac790a9fd61bb4369f58031807ef66b048eb (patch)
tree83e776a44c5c6b57b599f931d6625be103c29ca3 /llvm/lib/Transforms/IPO/Inliner.cpp
parente7b3da2dc506f5ebcda933f2b97a29a8d649157f (diff)
downloadbcm5719-llvm-1a56ac790a9fd61bb4369f58031807ef66b048eb.tar.gz
bcm5719-llvm-1a56ac790a9fd61bb4369f58031807ef66b048eb.zip
[NFC] Fixed unused function warning
llvm-svn: 338986
Diffstat (limited to 'llvm/lib/Transforms/IPO/Inliner.cpp')
-rw-r--r--llvm/lib/Transforms/IPO/Inliner.cpp2
1 files changed, 2 insertions, 0 deletions
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
OpenPOWER on IntegriCloud