Refactor the machine code emitter interface to pull the pointers for the current
authorChris Lattner <sabre@nondot.org>
Tue, 2 May 2006 18:27:26 +0000 (18:27 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 2 May 2006 18:27:26 +0000 (18:27 +0000)
commit43b429b05989075b60693d57395c99b0ad789f8d
treef2dd7751b959984c5583189487fbd5bb0ff3caf9
parent426cd7c25fc3f5d064f9e88af0ecad26c836135a
Refactor the machine code emitter interface to pull the pointers for the current
code emission location into the base class, instead of being in the derived classes.

This change means that low-level methods like emitByte/emitWord now are no longer
virtual (yaay for speed), and we now have a framework to support growable code
segments.  This implements feature request #1 of PR469.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28059 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/MachineCodeEmitter.h
lib/CodeGen/ELFWriter.cpp
lib/CodeGen/MachineCodeEmitter.cpp [deleted file]
lib/ExecutionEngine/JIT/JITEmitter.cpp
lib/Target/Alpha/AlphaCodeEmitter.cpp
lib/Target/PowerPC/PPCCodeEmitter.cpp
lib/Target/X86/X86CodeEmitter.cpp