diff options
author | Chris Lattner <sabre@nondot.org> | 2005-07-11 05:17:18 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-07-11 05:17:18 +0000 |
commit | 2244f73437db1532f1d1c389734fa2c4acbc85d9 (patch) | |
tree | b991af1b67d3f7789740439a932a126ef060125a /llvm/lib/Target/X86/X86TargetMachine.cpp | |
parent | 6801f4f2911180c425785f99ab4c052376664ff2 (diff) | |
download | bcm5719-llvm-2244f73437db1532f1d1c389734fa2c4acbc85d9.tar.gz bcm5719-llvm-2244f73437db1532f1d1c389734fa2c4acbc85d9.zip |
add code to emit the .text section to the section header.
Add a *VERY INITIAL* machine code emitter class. This is enough to take
this C function:
int foo(int X) { return X +1; }
and make objdump produce the following:
$ objdump -d t-llvm.o
t-llvm.o: file format elf32-i386
Disassembly of section .text:
00000000 <.text>:
0: b8 01 00 00 00 mov $0x1,%eax
5: 03 44 24 04 add 0x4(%esp,1),%eax
9: c3 ret
Anything using branches or refering to the constant pool or requiring
relocations will not work yet.
llvm-svn: 22375
Diffstat (limited to 'llvm/lib/Target/X86/X86TargetMachine.cpp')
0 files changed, 0 insertions, 0 deletions