Add support to the X86 backend for emitting ELF files. To use this, we

currently use: llc t.bc --filetype=obj

This will produce a t.o file which is dumpable with readelf.  Currently
the file produced is empty, but the scaffolding to do more is now in place.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22292 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2005-06-27 06:30:12 +00:00
parent 35f0a4f24e
commit 07a9144efe
3 changed files with 55 additions and 2 deletions

View File

@@ -69,6 +69,12 @@ FunctionPass *createX86FloatingPointStackifierPass();
///
FunctionPass *createX86CodePrinterPass(std::ostream &o,TargetMachine &tm);
/// createX86ELFObjectWriterPass - Returns a pass that outputs the generated
/// code as an ELF object file.
///
FunctionPass *createX86ELFObjectWriterPass(std::ostream &o, TargetMachine &tm);
/// createX86EmitCodeToMemory - Returns a pass that converts a register
/// allocated function into raw machine code in a dynamically
/// allocated chunk of memory.