diff options
author | Chris Lattner <sabre@nondot.org> | 2006-01-01 22:20:31 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-01-01 22:20:31 +0000 |
commit | 38e0b281da3d7f33229aa4d343f53680578c5d2e (patch) | |
tree | a16ba7944c1fd1a3db02858741ad19b6a0c447cf /llvm/lib/Target/Alpha/AlphaJITInfo.cpp | |
parent | f99c338278a689ecd217fa836af05605d1a06aa1 (diff) | |
download | bcm5719-llvm-38e0b281da3d7f33229aa4d343f53680578c5d2e.tar.gz bcm5719-llvm-38e0b281da3d7f33229aa4d343f53680578c5d2e.zip |
Remove a 'using namespace std'.
llvm-svn: 25059
Diffstat (limited to 'llvm/lib/Target/Alpha/AlphaJITInfo.cpp')
-rw-r--r-- | llvm/lib/Target/Alpha/AlphaJITInfo.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/llvm/lib/Target/Alpha/AlphaJITInfo.cpp b/llvm/lib/Target/Alpha/AlphaJITInfo.cpp index e0e7a072897..6d20ec35115 100644 --- a/llvm/lib/Target/Alpha/AlphaJITInfo.cpp +++ b/llvm/lib/Target/Alpha/AlphaJITInfo.cpp @@ -20,7 +20,6 @@ #include <cstdlib> #include <iostream> #include <map> -using namespace std; using namespace llvm; #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, //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) { unsigned *RelocPos = (unsigned*)Function + MR->getMachineCodeOffset()/4; @@ -276,13 +275,13 @@ void AlphaJITInfo::relocate(void *Function, MachineRelocation *MR, idx = getUpper16(idx); DEBUG(std::cerr << "LDAH: " << idx << "\n"); //add the relocation to the map - gpdistmap[make_pair(Function, MR->getConstantVal())] = RelocPos; + gpdistmap[std::make_pair(Function, MR->getConstantVal())] = RelocPos; break; case 0x08: //LDA - assert(gpdistmap[make_pair(Function, MR->getConstantVal())] && + assert(gpdistmap[std::make_pair(Function, MR->getConstantVal())] && "LDAg without seeing LDAHg"); idx = &GOTBase[GOToffset * 8] - - (unsigned char*)gpdistmap[make_pair(Function, MR->getConstantVal())]; + (unsigned char*)gpdistmap[std::make_pair(Function, MR->getConstantVal())]; idx = getLower16(idx); DEBUG(std::cerr << "LDA: " << idx << "\n"); break; |