Fix -Wunused-function to unbreak buildbot.

llvm-svn: 196716
This commit is contained in:
Rui Ueyama 2013-12-08 03:37:58 +00:00
parent 5af4622f30
commit 2994f6f772
1 changed files with 2 additions and 0 deletions

View File

@ -23,6 +23,7 @@ using namespace lld;
static bool compareAtoms(const LayoutPass::SortKey &,
const LayoutPass::SortKey &);
#ifndef NDEBUG
// Return "reason (leftval, rightval)"
static std::string formatReason(StringRef reason, int leftVal, int rightVal) {
Twine msg =
@ -41,6 +42,7 @@ static void checkTransitivity(std::vector<LayoutPass::SortKey> &vec) {
}
}
}
#endif // #ifndef NDEBUG
/// The function compares atoms by sorting atoms in the following order
/// a) Sorts atoms by Section position preference