Remove a 'using namespace std'.

llvm-svn: 25059
This commit is contained in:
Chris Lattner 2006-01-01 22:20:31 +00:00
parent 8291285388
commit 9f51967a78

View File

@ -20,7 +20,6 @@
#include <cstdlib> #include <cstdlib>
#include <iostream> #include <iostream>
#include <map> #include <map>
using namespace std;
using namespace llvm; using namespace llvm;
#define BUILD_OFormatI(Op, RA, LIT, FUN, RC) \ #define BUILD_OFormatI(Op, RA, LIT, FUN, RC) \
@ -240,7 +239,7 @@ void AlphaJITInfo::relocate(void *Function, MachineRelocation *MR,
//because gpdist are paired and relative to the pc of the first inst, //because gpdist are paired and relative to the pc of the first inst,
//we need to have some state //we need to have some state
static map<pair<void*, int>, void*> gpdistmap; static std::map<std::pair<void*, int>, void*> gpdistmap;
for (unsigned i = 0; i != NumRelocs; ++i, ++MR) { for (unsigned i = 0; i != NumRelocs; ++i, ++MR) {
unsigned *RelocPos = (unsigned*)Function + MR->getMachineCodeOffset()/4; unsigned *RelocPos = (unsigned*)Function + MR->getMachineCodeOffset()/4;
@ -276,13 +275,13 @@ void AlphaJITInfo::relocate(void *Function, MachineRelocation *MR,
idx = getUpper16(idx); idx = getUpper16(idx);
DEBUG(std::cerr << "LDAH: " << idx << "\n"); DEBUG(std::cerr << "LDAH: " << idx << "\n");
//add the relocation to the map //add the relocation to the map
gpdistmap[make_pair(Function, MR->getConstantVal())] = RelocPos; gpdistmap[std::make_pair(Function, MR->getConstantVal())] = RelocPos;
break; break;
case 0x08: //LDA case 0x08: //LDA
assert(gpdistmap[make_pair(Function, MR->getConstantVal())] && assert(gpdistmap[std::make_pair(Function, MR->getConstantVal())] &&
"LDAg without seeing LDAHg"); "LDAg without seeing LDAHg");
idx = &GOTBase[GOToffset * 8] - idx = &GOTBase[GOToffset * 8] -
(unsigned char*)gpdistmap[make_pair(Function, MR->getConstantVal())]; (unsigned char*)gpdistmap[std::make_pair(Function, MR->getConstantVal())];
idx = getLower16(idx); idx = getLower16(idx);
DEBUG(std::cerr << "LDA: " << idx << "\n"); DEBUG(std::cerr << "LDA: " << idx << "\n");
break; break;