Silence unused function warning in Release builds.
authorBenjamin Kramer <benny.kra@googlemail.com>
Tue, 26 Aug 2014 14:22:05 +0000 (14:22 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Tue, 26 Aug 2014 14:22:05 +0000 (14:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216458 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp

index d5c683c579e9c53e0899cd240a688ad2ef254ed4..701428f5ef9be3067629db5f1b0947dca7ae2464 100644 (file)
@@ -41,6 +41,7 @@ void RuntimeDyldImpl::registerEHFrames() {}
 
 void RuntimeDyldImpl::deregisterEHFrames() {}
 
 
 void RuntimeDyldImpl::deregisterEHFrames() {}
 
+#ifndef NDEBUG
 static void dumpSectionMemory(const SectionEntry &S, StringRef State) {
   dbgs() << "----- Contents of section " << S.Name << " " << State << " -----";
 
 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";
 }
 
   dbgs() << "\n";
 }
+#endif
 
 // Resolve the relocations for all symbols we currently know about.
 void RuntimeDyldImpl::resolveRelocations() {
 
 // Resolve the relocations for all symbols we currently know about.
 void RuntimeDyldImpl::resolveRelocations() {