Get rid of 'using namespace' declarations in headers.

This commit is contained in:
Steve Reinhardt 2009-03-05 17:15:31 -08:00
parent b8548c011d
commit e3d6e8882e
8 changed files with 4 additions and 19 deletions

View file

@ -43,9 +43,6 @@ class IdleStartEvent;
#include "kern/linux/events.hh" #include "kern/linux/events.hh"
#include "params/LinuxAlphaSystem.hh" #include "params/LinuxAlphaSystem.hh"
using namespace AlphaISA;
using namespace Linux;
/** /**
* This class contains linux specific system code (Loading, Events). * This class contains linux specific system code (Loading, Events).
* It points to objects that are the system binaries to load and patches them * It points to objects that are the system binaries to load and patches them
@ -109,7 +106,7 @@ class LinuxAlphaSystem : public AlphaSystem
* PC based event to skip the dprink() call and emulate its * PC based event to skip the dprink() call and emulate its
* functionality * functionality
*/ */
DebugPrintkEvent *debugPrintkEvent; Linux::DebugPrintkEvent *debugPrintkEvent;
/** /**
* Skip calculate_delay_loop() rather than waiting for this to be * Skip calculate_delay_loop() rather than waiting for this to be

View file

@ -39,8 +39,6 @@ class IdleStartEvent;
#include "arch/mips/system.hh" #include "arch/mips/system.hh"
#include "params/BareIronMipsSystem.hh" #include "params/BareIronMipsSystem.hh"
using namespace MipsISA;
/** /**
* This class contains linux specific system code (Loading, Events). * This class contains linux specific system code (Loading, Events).
* It points to objects that are the system binaries to load and patches them * It points to objects that are the system binaries to load and patches them

View file

@ -381,6 +381,4 @@ namespace MipsISA
}; };
using namespace MipsISA;
#endif // __ARCH_MIPS_ISA_TRAITS_HH__ #endif // __ARCH_MIPS_ISA_TRAITS_HH__

View file

@ -32,9 +32,6 @@
#define __ARCH_MIPS_LINUX_LINUX_HH__ #define __ARCH_MIPS_LINUX_LINUX_HH__
#include "kern/linux/linux.hh" #include "kern/linux/linux.hh"
#include <string>
using std::string;
class MipsLinux : public Linux class MipsLinux : public Linux
{ {

View file

@ -43,9 +43,6 @@ class IdleStartEvent;
#include "kern/linux/events.hh" #include "kern/linux/events.hh"
#include "params/LinuxMipsSystem.hh" #include "params/LinuxMipsSystem.hh"
using namespace MipsISA;
using namespace Linux;
/** /**
* This class contains linux specific system code (Loading, Events). * This class contains linux specific system code (Loading, Events).
* It points to objects that are the system binaries to load and patches them * It points to objects that are the system binaries to load and patches them
@ -112,7 +109,7 @@ class LinuxMipsSystem : public MipsSystem
* PC based event to skip the dprink() call and emulate its * PC based event to skip the dprink() call and emulate its
* functionality * functionality
*/ */
DebugPrintkEvent *debugPrintkEvent; Linux::DebugPrintkEvent *debugPrintkEvent;
/** /**
* Skip calculate_delay_loop() rather than waiting for this to be * Skip calculate_delay_loop() rather than waiting for this to be

View file

@ -45,7 +45,6 @@
#include "base/misc.hh" #include "base/misc.hh"
#include <iostream> #include <iostream>
using namespace std;
namespace MipsISA namespace MipsISA
{ {
@ -164,7 +163,7 @@ forkThread(TC *tc, Fault &fault, int Rd_bits, int Rs, int Rt)
success = 1; success = 1;
} }
} else { } else {
std::cerr << "Bad VPEs" << endl; std::cerr << "Bad VPEs" << std::endl;
} }
} }

View file

@ -43,6 +43,7 @@
//#include "params/DerivO3CPU.hh" //#include "params/DerivO3CPU.hh"
using namespace std; using namespace std;
using namespace MipsISA;
std::string MiscRegFile::miscRegNames[NumMiscRegs] = std::string MiscRegFile::miscRegNames[NumMiscRegs] =
{ {

View file

@ -41,8 +41,6 @@
#include "cpu/inorder/pipeline_traits.hh" #include "cpu/inorder/pipeline_traits.hh"
#include "cpu/inorder/cpu.hh" #include "cpu/inorder/cpu.hh"
using namespace ThePipeline;
class FetchSeqUnit : public Resource { class FetchSeqUnit : public Resource {
public: public:
typedef ThePipeline::DynInstPtr DynInstPtr; typedef ThePipeline::DynInstPtr DynInstPtr;