forked from OSchip/llvm-project
Fix -Wunused-function warning of release build.
llvm-svn: 192943
This commit is contained in:
parent
4050b20b04
commit
5206222faf
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue