aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/X86/X86.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-06-27 06:30:12 +0000
committerChris Lattner <sabre@nondot.org>2005-06-27 06:30:12 +0000
commit07a9144efea7e870c53552d73dc078de8a3d0731 (patch)
treed3a9fa9c0b31322a7f6106f8504feb5c83ad1488 /lib/Target/X86/X86.h
parent35f0a4f24e1d7ded182bd557503a9035fb540a58 (diff)
downloadexternal_llvm-07a9144efea7e870c53552d73dc078de8a3d0731.zip
external_llvm-07a9144efea7e870c53552d73dc078de8a3d0731.tar.gz
external_llvm-07a9144efea7e870c53552d73dc078de8a3d0731.tar.bz2
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
Diffstat (limited to 'lib/Target/X86/X86.h')
-rw-r--r--lib/Target/X86/X86.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Target/X86/X86.h b/lib/Target/X86/X86.h
index 6f7707c..1bb4ec2 100644
--- a/lib/Target/X86/X86.h
+++ b/lib/Target/X86/X86.h
@@ -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.