Like the coding standards say, do not use "using namespace std".

llvm-svn: 129435
This commit is contained in:
Jay Foad 2011-04-13 12:46:01 +00:00
parent 2c1c33552d
commit 3b422a1249
2 changed files with 2 additions and 4 deletions

View File

@ -23,8 +23,6 @@
#include "llvm/CodeGen/MachineCodeEmitter.h"
#include "llvm/ADT/DenseMap.h"
using namespace std;
namespace llvm {
class MachineBasicBlock;

View 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;