[llvm-commits] CVS: llvm/lib/Target/Alpha/AlphaJITInfo.cpp

Chris Lattner lattner at cs.uiuc.edu
Sun Jan 1 14:20:43 PST 2006



Changes in directory llvm/lib/Target/Alpha:

AlphaJITInfo.cpp updated: 1.7 -> 1.8
---
Log message:

Remove a 'using namespace std'.


---
Diffs of the changes:  (+4 -5)

 AlphaJITInfo.cpp |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)


Index: llvm/lib/Target/Alpha/AlphaJITInfo.cpp
diff -u llvm/lib/Target/Alpha/AlphaJITInfo.cpp:1.7 llvm/lib/Target/Alpha/AlphaJITInfo.cpp:1.8
--- llvm/lib/Target/Alpha/AlphaJITInfo.cpp:1.7	Thu Aug  4 10:32:36 2005
+++ llvm/lib/Target/Alpha/AlphaJITInfo.cpp	Sun Jan  1 16:20:31 2006
@@ -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 @@
   //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 @@
         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;






More information about the llvm-commits mailing list