diff options
author | Chris Lattner <sabre@nondot.org> | 2009-07-31 17:42:42 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-07-31 17:42:42 +0000 |
commit | f26e03bc7e30162197641406e37e662a15d80f7e (patch) | |
tree | 2c109dc8f8764abb040f71fe14215b9116d11922 /lib/CodeGen/ELFWriter.h | |
parent | 5defacc6e605f4651c6300237cef8e9bb2eb6d0e (diff) | |
download | llvm-f26e03bc7e30162197641406e37e662a15d80f7e.tar.gz llvm-f26e03bc7e30162197641406e37e662a15d80f7e.tar.bz2 llvm-f26e03bc7e30162197641406e37e662a15d80f7e.tar.xz |
refactor section construction in TLOF to be through an explicit
initialize method, which can be called when an MCContext is available.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77687 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/ELFWriter.h')
-rw-r--r-- | lib/CodeGen/ELFWriter.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/ELFWriter.h b/lib/CodeGen/ELFWriter.h index b8bfa7d2a0..ebcfe35eba 100644 --- a/lib/CodeGen/ELFWriter.h +++ b/lib/CodeGen/ELFWriter.h @@ -35,6 +35,7 @@ namespace llvm { class TargetELFWriterInfo; class raw_ostream; class SectionKind; + class MCContext; typedef std::vector<ELFSym*>::iterator ELFSymIter; typedef std::vector<ELFSection*>::iterator ELFSectionIter; @@ -65,6 +66,8 @@ namespace llvm { /// Target machine description. TargetMachine &TM; + MCContext &OutContext; + /// Target Elf Writer description. const TargetELFWriterInfo *TEW; |