diff options
-rw-r--r-- | lld/lib/Passes/LayoutPass.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lld/lib/Passes/LayoutPass.cpp b/lld/lib/Passes/LayoutPass.cpp index a8e10126f77..61135da7c9e 100644 --- a/lld/lib/Passes/LayoutPass.cpp +++ b/lld/lib/Passes/LayoutPass.cpp @@ -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 |