[llvm] r216458 - Silence unused function warning in Release builds.
Benjamin Kramer
benny.kra at googlemail.com
Tue Aug 26 07:22:05 PDT 2014
Author: d0k
Date: Tue Aug 26 09:22:05 2014
New Revision: 216458
URL: http://llvm.org/viewvc/llvm-project?rev=216458&view=rev
Log:
Silence unused function warning in Release builds.
Modified:
llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
Modified: llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp?rev=216458&r1=216457&r2=216458&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp Tue Aug 26 09:22:05 2014
@@ -41,6 +41,7 @@ void RuntimeDyldImpl::registerEHFrames()
void RuntimeDyldImpl::deregisterEHFrames() {}
+#ifndef NDEBUG
static void dumpSectionMemory(const SectionEntry &S, StringRef State) {
dbgs() << "----- Contents of section " << S.Name << " " << State << " -----";
@@ -71,6 +72,7 @@ static void dumpSectionMemory(const Sect
dbgs() << "\n";
}
+#endif
// Resolve the relocations for all symbols we currently know about.
void RuntimeDyldImpl::resolveRelocations() {
More information about the llvm-commits
mailing list