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 | 0e9aa4582c78183d23948dce12c8739442d8f9a7 (patch) | |
tree | 6bdfd41e11e78717a74de055dce4604a2e693588 /lib/Target/Alpha/AlphaJITInfo.cpp | |
parent | 993ff1ce4ae786a480b75aecb1c887f21b6e6c6c (diff) | |
download | external_llvm-0e9aa4582c78183d23948dce12c8739442d8f9a7.zip external_llvm-0e9aa4582c78183d23948dce12c8739442d8f9a7.tar.gz external_llvm-0e9aa4582c78183d23948dce12c8739442d8f9a7.tar.bz2 |
Remove a 'using namespace std'.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25059 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Alpha/AlphaJITInfo.cpp')
-rw-r--r-- | lib/Target/Alpha/AlphaJITInfo.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/Target/Alpha/AlphaJITInfo.cpp b/lib/Target/Alpha/AlphaJITInfo.cpp index e0e7a07..6d20ec3 100644 --- a/lib/Target/Alpha/AlphaJITInfo.cpp +++ b/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; |