Like the coding standards say, do not use "using namespace std".
authorJay Foad <jay.foad@gmail.com>
Wed, 13 Apr 2011 12:46:01 +0000 (12:46 +0000)
committerJay Foad <jay.foad@gmail.com>
Wed, 13 Apr 2011 12:46:01 +0000 (12:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129435 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/JITCodeEmitter.h
lib/ExecutionEngine/JIT/JITEmitter.cpp

index fea852305158c00b3122fbbec80347c38da87718..54e70ba966d507f5f8cd42f13b179cb98a751748 100644 (file)
@@ -23,8 +23,6 @@
 #include "llvm/CodeGen/MachineCodeEmitter.h"
 #include "llvm/ADT/DenseMap.h"
 
-using namespace std;
-
 namespace llvm {
 
 class MachineBasicBlock;
index 3b4e7509d83988a71f86b8adffed83c470b6d8d4..d046b8aea641016714bfc23a80dc5e2096ac24b1 100644 (file)
@@ -128,7 +128,7 @@ namespace {
       return GlobalToIndirectSymMap;
     }
 
-    pair<void *, Function *> LookupFunctionFromCallSite(
+    std::pair<void *, Function *> LookupFunctionFromCallSite(
         const MutexGuard &locked, void *CallSite) const {
       assert(locked.holds(TheJIT->lock));
 
@@ -646,7 +646,7 @@ void *JITResolver::JITCompilerFn(void *Stub) {
 
     // The address given to us for the stub may not be exactly right, it might
     // be a little bit after the stub.  As such, use upper_bound to find it.
-    pair<void*, Function*> I =
+    std::pair<void*, Function*> I =
       JR->state.LookupFunctionFromCallSite(locked, Stub);
     F = I.second;
     ActualPtr = I.first;