Fix -Wunused-function warning of release build.

llvm-svn: 192943
This commit is contained in:
Rui Ueyama 2013-10-18 03:18:54 +00:00
parent 4050b20b04
commit 5206222faf
1 changed files with 2 additions and 0 deletions

View File

@ -20,6 +20,7 @@
using namespace lld;
#ifndef NDEBUG
namespace {
// Return "reason (leftval, rightval)"
std::string formatReason(StringRef reason, int leftVal, int rightVal) {
@ -28,6 +29,7 @@ std::string formatReason(StringRef reason, int leftVal, int rightVal) {
return std::move(msg.str());
}
}
#endif // NDEBUG
/// The function compares atoms by sorting atoms in the following order
/// a) Sorts atoms by Section position preference