diff options
author | Chris Lattner <sabre@nondot.org> | 2002-01-20 22:54:45 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-01-20 22:54:45 +0000 |
commit | 697954c15da58bd8b186dbafdedd8b06db770201 (patch) | |
tree | e119a71f09b5c2513c8c270161ae2a858c6f3b96 /lib/VMCore/SymbolTable.cpp | |
parent | 13c4659220bc78a0a3529f4d9e57546e898088e3 (diff) |
Changes to build successfully with GCC 3.02
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1503 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/SymbolTable.cpp')
-rw-r--r-- | lib/VMCore/SymbolTable.cpp | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/lib/VMCore/SymbolTable.cpp b/lib/VMCore/SymbolTable.cpp index dd6329fc97..ab98a73184 100644 --- a/lib/VMCore/SymbolTable.cpp +++ b/lib/VMCore/SymbolTable.cpp @@ -10,6 +10,14 @@ #include "llvm/Module.h" #include "llvm/Method.h" #include "Support/StringExtras.h" +#include <iostream> + +using std::string; +using std::pair; +using std::make_pair; +using std::map; +using std::cerr; +using std::cout; #define DEBUG_SYMBOL_TABLE 0 #define DEBUG_ABSTYPE 0 @@ -35,7 +43,8 @@ SymbolTable::~SymbolTable() { for (type_iterator I = i->second.begin(); I != i->second.end(); ++I) if (!isa<Constant>(I->second) && !isa<Type>(I->second)) { cerr << "Value still in symbol table! Type = '" - << i->first->getDescription() << "' Name = '" << I->first << "'\n"; + << i->first->getDescription() << "' Name = '" + << I->first << "'\n"; LeftoverValues = false; } } @@ -305,11 +314,11 @@ void SymbolTable::refineAbstractType(const DerivedType *OldType, #include <algorithm> static void DumpVal(const pair<const string, Value *> &V) { - cout << " '" << V.first << "' = " << V.second << endl; + cout << " '" << V.first << "' = " << V.second << "\n"; } static void DumpPlane(const pair<const Type *, map<const string, Value *> >&P) { - cout << " Plane: " << P.first << endl; + cout << " Plane: " << P.first << "\n"; for_each(P.second.begin(), P.second.end(), DumpVal); } |