summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-12-08 08:06:28 +0000
committerChris Lattner <sabre@nondot.org>2003-12-08 08:06:28 +0000
commitc0e1b071b98b2c76d83e6b25225822aaa5724db0 (patch)
tree9c49c231e3944a4a9ac063eb75702e1ddbf1106b /llvm/lib/ExecutionEngine
parentbd7356a5d306eb8be53ed8abd6a6aa1b4ac8b451 (diff)
downloadbcm5719-llvm-c0e1b071b98b2c76d83e6b25225822aaa5724db0.tar.gz
bcm5719-llvm-c0e1b071b98b2c76d83e6b25225822aaa5724db0.zip
Finegrainify namespacification
llvm-svn: 10318
Diffstat (limited to 'llvm/lib/ExecutionEngine')
-rw-r--r--llvm/lib/ExecutionEngine/JIT/Emitter.cpp5
-rw-r--r--llvm/lib/ExecutionEngine/JIT/Intercept.cpp5
-rw-r--r--llvm/lib/ExecutionEngine/JIT/JIT.cpp7
-rw-r--r--llvm/lib/ExecutionEngine/JIT/VM.cpp5
4 files changed, 5 insertions, 17 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/Emitter.cpp b/llvm/lib/ExecutionEngine/JIT/Emitter.cpp
index 1d04f9920a2..2495360aea1 100644
--- a/llvm/lib/ExecutionEngine/JIT/Emitter.cpp
+++ b/llvm/lib/ExecutionEngine/JIT/Emitter.cpp
@@ -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
diff --git a/llvm/lib/ExecutionEngine/JIT/Intercept.cpp b/llvm/lib/ExecutionEngine/JIT/Intercept.cpp
index 191b57d22a0..72ac92a6554 100644
--- a/llvm/lib/ExecutionEngine/JIT/Intercept.cpp
+++ b/llvm/lib/ExecutionEngine/JIT/Intercept.cpp
@@ -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
diff --git a/llvm/lib/ExecutionEngine/JIT/JIT.cpp b/llvm/lib/ExecutionEngine/JIT/JIT.cpp
index 61d9629d93e..c5a70eade58 100644
--- a/llvm/lib/ExecutionEngine/JIT/JIT.cpp
+++ b/llvm/lib/ExecutionEngine/JIT/JIT.cpp
@@ -1,4 +1,4 @@
-//===-- JIT.cpp - LLVM Just in Time Compiler ------------------------------===//
+//===-- JIT.cpp - LLVM Just-In-Time Compiler ------------------------------===//
//
// The LLVM Compiler Infrastructure
//
@@ -19,13 +19,12 @@
#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
diff --git a/llvm/lib/ExecutionEngine/JIT/VM.cpp b/llvm/lib/ExecutionEngine/JIT/VM.cpp
index 379be77ac84..e71ec6099d7 100644
--- a/llvm/lib/ExecutionEngine/JIT/VM.cpp
+++ b/llvm/lib/ExecutionEngine/JIT/VM.cpp
@@ -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
OpenPOWER on IntegriCloud