aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/ELFWriter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-05-02 23:22:24 +0000
committerChris Lattner <sabre@nondot.org>2006-05-02 23:22:24 +0000
commitf75f9be3fb89eb6661a0ed8bfee8a6328ee5a4d1 (patch)
tree763c4953dc25b80928238b6ce38e918a2c4366c8 /lib/CodeGen/ELFWriter.cpp
parent1f4549f35c69376a07360bd57ff06ed8f636d153 (diff)
downloadexternal_llvm-f75f9be3fb89eb6661a0ed8bfee8a6328ee5a4d1.zip
external_llvm-f75f9be3fb89eb6661a0ed8bfee8a6328ee5a4d1.tar.gz
external_llvm-f75f9be3fb89eb6661a0ed8bfee8a6328ee5a4d1.tar.bz2
Several related changes:
1. Change several methods in the MachineCodeEmitter class to be pure virtual. 2. Suck emitConstantPool/initJumpTableInfo into startFunction, removing them from the MachineCodeEmitter interface, and reducing the amount of target- specific code. 3. Change the JITEmitter so that it allocates constantpools and jump tables *right* next to the functions that they belong to, instead of in a separate pool of memory. This makes all memory for a function be contiguous, and means the JITEmitter only tracks one block of memory now. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28065 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/ELFWriter.cpp')
-rw-r--r--lib/CodeGen/ELFWriter.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/CodeGen/ELFWriter.cpp b/lib/CodeGen/ELFWriter.cpp
index 483c490..69302a3 100644
--- a/lib/CodeGen/ELFWriter.cpp
+++ b/lib/CodeGen/ELFWriter.cpp
@@ -58,10 +58,6 @@ namespace llvm {
void startFunction(MachineFunction &F);
bool finishFunction(MachineFunction &F);
- void emitConstantPool(MachineConstantPool *MCP) {
- if (MCP->isEmpty()) return;
- assert(0 && "unimp");
- }
void addRelocation(const MachineRelocation &MR) {
assert(0 && "relo not handled yet!");
}
@@ -73,6 +69,12 @@ namespace llvm {
assert(0 && "JT not implementated yet!");
return 0;
}
+
+ virtual void emitJumpTableInfo(MachineJumpTableInfo *MJTI,
+ std::map<MachineBasicBlock*,uint64_t> &MBBM){
+ assert(0 && "JT not implementated yet!");
+ }
+
/// JIT SPECIFIC FUNCTIONS - DO NOT IMPLEMENT THESE HERE!
void startFunctionStub(unsigned StubSize) {