1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00

[NFC] Fixed unused function warning

llvm-svn: 338986
This commit is contained in:
David Bolvansky 2018-08-06 04:45:46 +00:00
parent fd20113dad
commit 7d29076c15

View File

@ -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