Finegrainify namespacification
authorChris Lattner <sabre@nondot.org>
Mon, 8 Dec 2003 08:06:28 +0000 (08:06 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 8 Dec 2003 08:06:28 +0000 (08:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10318 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ExecutionEngine/JIT/Intercept.cpp
lib/ExecutionEngine/JIT/JIT.cpp
lib/ExecutionEngine/JIT/JITEmitter.cpp
lib/ExecutionEngine/JIT/VM.cpp

index 191b57d22a052909bf093aeac6f9f3b489294a72..72ac92a6554da4ab8f4e03c6862d0afdfb21f930 100644 (file)
@@ -18,8 +18,7 @@
 #include "VM.h"
 #include "Support/DynamicLinker.h"
 #include <iostream>
-
-namespace llvm {
+using namespace llvm;
 
 // AtExitHandlers - List of functions to call when the program exits,
 // registered with the atexit() library function.
@@ -77,5 +76,3 @@ void *VM::getPointerToNamedFunction(const std::string &Name) {
   
   return Ptr;
 }
-
-} // End llvm namespace
index 61d9629d93e0a7d782af5afd1754d57d990750dc..c5a70eade58cc5225d350dcbb9b9127097286cc3 100644 (file)
@@ -1,4 +1,4 @@
-//===-- JIT.cpp - LLVM Just in Time Compiler ------------------------------===//
+//===-- JIT.cpp - LLVM Just-In-Time Compiler ------------------------------===//
 // 
 //                     The LLVM Compiler Infrastructure
 //
 #include "llvm/Target/TargetMachine.h"
 #include "llvm/Target/TargetMachineImpls.h"
 #include "Support/CommandLine.h"
+using namespace llvm;
 
 #if !defined(ENABLE_X86_JIT) && !defined(ENABLE_SPARC_JIT)
 #define NO_JITS_ENABLED
 #endif
 
-namespace llvm {
-
 namespace {
   enum ArchName { x86, Sparc };
 
@@ -120,5 +119,3 @@ GenericValue VM::run(Function *F, const std::vector<GenericValue> &ArgValues)
   rv.IntVal = ExitCode;
   return rv;
 }
-
-} // End llvm namespace
index 1d04f9920a2dafcf1c758bbe7161dc1aecfedbf0..2495360aea1ec787c28030627ba0e864857e61df 100644 (file)
@@ -27,8 +27,7 @@
 #include "Support/Statistic.h"
 #include "Config/unistd.h"
 #include "Config/sys/mman.h"
-
-namespace llvm {
+using namespace llvm;
 
 namespace {
   Statistic<> NumBytes("jit", "Number of bytes of machine code compiled");
@@ -289,5 +288,3 @@ extern "C" {
     return TheVM->getPointerToNamedFunction(Name);
   }
 }
-
-} // End llvm namespace
index 379be77ac84b309b1ca229eae042bff32e78114a..e71ec6099d79b1d9b97e5df23782bccd07746c41 100644 (file)
@@ -18,8 +18,7 @@
 #include "llvm/CodeGen/MachineCodeEmitter.h"
 #include "llvm/CodeGen/MachineFunction.h"
 #include "llvm/Target/TargetMachine.h"
-
-namespace llvm {
+using namespace llvm;
 
 VM::~VM() {
   delete MCE;
@@ -99,5 +98,3 @@ void *VM::recompileAndRelinkFunction(Function *F) {
   TM.replaceMachineCodeForFunction(OldAddr, Addr);
   return Addr;
 }
-
-} // End llvm namespace