Silence unused function warning in Release builds.
[oota-llvm.git] / lib / ExecutionEngine / RuntimeDyld / RuntimeDyld.cpp
index d5c683c579e9c53e0899cd240a688ad2ef254ed4..701428f5ef9be3067629db5f1b0947dca7ae2464 100644 (file)
@@ -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 SectionEntry &S, StringRef State) {
 
   dbgs() << "\n";
 }
+#endif
 
 // Resolve the relocations for all symbols we currently know about.
 void RuntimeDyldImpl::resolveRelocations() {