[llvm-commits] CVS: llvm/lib/ExecutionEngine/JIT/Emitter.cpp Intercept.cpp JIT.cpp VM.cpp VM.h
Brian Gaeke
gaeke at cs.uiuc.edu
Tue Nov 11 16:43:47 PST 2003
Changes in directory llvm/lib/ExecutionEngine/JIT:
Emitter.cpp updated: 1.31 -> 1.32
Intercept.cpp updated: 1.9 -> 1.10
JIT.cpp updated: 1.24 -> 1.25
VM.cpp updated: 1.12 -> 1.13
VM.h updated: 1.16 -> 1.17
---
Log message:
Put all LLVM code into the llvm namespace, as per bug 109.
---
Diffs of the changes: (+20 -0)
Index: llvm/lib/ExecutionEngine/JIT/Emitter.cpp
diff -u llvm/lib/ExecutionEngine/JIT/Emitter.cpp:1.31 llvm/lib/ExecutionEngine/JIT/Emitter.cpp:1.32
--- llvm/lib/ExecutionEngine/JIT/Emitter.cpp:1.31 Mon Oct 20 14:43:16 2003
+++ llvm/lib/ExecutionEngine/JIT/Emitter.cpp Tue Nov 11 16:41:33 2003
@@ -27,6 +27,8 @@
#include "Config/unistd.h"
#include "Config/sys/mman.h"
+namespace llvm {
+
namespace {
Statistic<> NumBytes("jit", "Number of bytes of machine code compiled");
VM *TheVM = 0;
@@ -265,3 +267,5 @@
return TheVM->getPointerToNamedFunction(Name);
}
}
+
+} // End llvm namespace
Index: llvm/lib/ExecutionEngine/JIT/Intercept.cpp
diff -u llvm/lib/ExecutionEngine/JIT/Intercept.cpp:1.9 llvm/lib/ExecutionEngine/JIT/Intercept.cpp:1.10
--- llvm/lib/ExecutionEngine/JIT/Intercept.cpp:1.9 Mon Oct 20 14:43:16 2003
+++ llvm/lib/ExecutionEngine/JIT/Intercept.cpp Tue Nov 11 16:41:33 2003
@@ -19,6 +19,8 @@
#include "Support/DynamicLinker.h"
#include <iostream>
+namespace llvm {
+
// AtExitHandlers - List of functions to call when the program exits,
// registered with the atexit() library function.
static std::vector<void (*)()> AtExitHandlers;
@@ -75,3 +77,5 @@
return Ptr;
}
+
+} // End llvm namespace
Index: llvm/lib/ExecutionEngine/JIT/JIT.cpp
diff -u llvm/lib/ExecutionEngine/JIT/JIT.cpp:1.24 llvm/lib/ExecutionEngine/JIT/JIT.cpp:1.25
--- llvm/lib/ExecutionEngine/JIT/JIT.cpp:1.24 Sat Nov 8 21:15:40 2003
+++ llvm/lib/ExecutionEngine/JIT/JIT.cpp Tue Nov 11 16:41:33 2003
@@ -24,6 +24,8 @@
#define NO_JITS_ENABLED
#endif
+namespace llvm {
+
namespace {
enum ArchName { x86, Sparc };
@@ -118,3 +120,5 @@
rv.IntVal = ExitCode;
return rv;
}
+
+} // End llvm namespace
Index: llvm/lib/ExecutionEngine/JIT/VM.cpp
diff -u llvm/lib/ExecutionEngine/JIT/VM.cpp:1.12 llvm/lib/ExecutionEngine/JIT/VM.cpp:1.13
--- llvm/lib/ExecutionEngine/JIT/VM.cpp:1.12 Thu Oct 23 22:55:37 2003
+++ llvm/lib/ExecutionEngine/JIT/VM.cpp Tue Nov 11 16:41:33 2003
@@ -19,6 +19,8 @@
#include "llvm/CodeGen/MachineCodeEmitter.h"
#include "llvm/Target/TargetMachine.h"
+namespace llvm {
+
VM::~VM() {
delete MCE;
delete &TM;
@@ -98,3 +100,5 @@
TM.replaceMachineCodeForFunction (OldAddr, Addr);
return Addr;
}
+
+} // End llvm namespace
Index: llvm/lib/ExecutionEngine/JIT/VM.h
diff -u llvm/lib/ExecutionEngine/JIT/VM.h:1.16 llvm/lib/ExecutionEngine/JIT/VM.h:1.17
--- llvm/lib/ExecutionEngine/JIT/VM.h:1.16 Tue Oct 21 10:17:13 2003
+++ llvm/lib/ExecutionEngine/JIT/VM.h Tue Nov 11 16:41:33 2003
@@ -18,6 +18,8 @@
#include "llvm/PassManager.h"
#include <map>
+namespace llvm {
+
class Function;
class GlobalValue;
class Constant;
@@ -77,5 +79,7 @@
void setupPassManager();
void runJITOnFunction (Function *F);
};
+
+} // End llvm namespace
#endif
More information about the llvm-commits
mailing list