We actually need this code for the release build to prevent link errors,
authorChris Lattner <sabre@nondot.org>
Fri, 10 May 2002 18:54:35 +0000 (18:54 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 10 May 2002 18:54:35 +0000 (18:54 +0000)
un#ifdef it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2606 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/SymbolTable.cpp

index 64674ca4c6622fb33fd355b5fddc052b26484533..dba5dcbf864db26d1910f46661c002dd10c1fd53 100644 (file)
@@ -11,6 +11,7 @@
 #include "llvm/Function.h"
 #include "Support/StringExtras.h"
 #include <iostream>
+#include <algorithm>
 
 using std::string;
 using std::pair;
@@ -323,10 +324,6 @@ void SymbolTable::refineAbstractType(const DerivedType *OldType,
   }
 }
 
-
-#ifndef NDEBUG
-#include <algorithm>
-
 static void DumpVal(const pair<const string, Value *> &V) {
   std::cout << "  '" << V.first << "' = ";
   V.second->dump();
@@ -349,5 +346,3 @@ void SymbolTable::dump() const {
     ParentSymTab->dump();
   }
 }
-
-#endif