diff options
| author | Matt Fleming <matt@console-pimps.org> | 2010-08-16 18:35:43 +0000 |
|---|---|---|
| committer | Matt Fleming <matt@console-pimps.org> | 2010-08-16 18:35:43 +0000 |
| commit | d83b9278970ef9b102c5eb5ad6289084cef93943 (patch) | |
| tree | 98bf126fa66e841240ca4aea1c4f0268c1babdf6 /llvm/lib/MC | |
| parent | 9cecd63b07930e4402aaec1eef807ed33fd29dba (diff) | |
| download | bcm5719-llvm-d83b9278970ef9b102c5eb5ad6289084cef93943.tar.gz bcm5719-llvm-d83b9278970ef9b102c5eb5ad6289084cef93943.zip | |
Add ELF ObjectWriter and Streamer support.
llvm-svn: 111172
Diffstat (limited to 'llvm/lib/MC')
| -rw-r--r-- | llvm/lib/MC/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | llvm/lib/MC/MCContext.cpp | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/MC/CMakeLists.txt b/llvm/lib/MC/CMakeLists.txt index 7b9b355339a..60a3a3e3e31 100644 --- a/llvm/lib/MC/CMakeLists.txt +++ b/llvm/lib/MC/CMakeLists.txt @@ -1,4 +1,5 @@ add_llvm_library(LLVMMC + ELFObjectWriter.cpp MCAsmInfo.cpp MCAsmInfoCOFF.cpp MCAsmInfoDarwin.cpp @@ -7,6 +8,7 @@ add_llvm_library(LLVMMC MCCodeEmitter.cpp MCContext.cpp MCDisassembler.cpp + MCELFStreamer.cpp MCExpr.cpp MCInst.cpp MCInstPrinter.cpp diff --git a/llvm/lib/MC/MCContext.cpp b/llvm/lib/MC/MCContext.cpp index 3996334d9bc..adf476cf3f4 100644 --- a/llvm/lib/MC/MCContext.cpp +++ b/llvm/lib/MC/MCContext.cpp @@ -148,7 +148,7 @@ getMachOSection(StringRef Segment, StringRef Section, const MCSection *MCContext:: getELFSection(StringRef Section, unsigned Type, unsigned Flags, - SectionKind Kind, bool IsExplicit) { + SectionKind Kind, bool IsExplicit, unsigned EntrySize) { if (ELFUniquingMap == 0) ELFUniquingMap = new ELFUniqueMapTy(); ELFUniqueMapTy &Map = *(ELFUniqueMapTy*)ELFUniquingMap; @@ -158,7 +158,7 @@ getELFSection(StringRef Section, unsigned Type, unsigned Flags, if (Entry.getValue()) return Entry.getValue(); MCSectionELF *Result = new (*this) MCSectionELF(Entry.getKey(), Type, Flags, - Kind, IsExplicit); + Kind, IsExplicit, EntrySize); Entry.setValue(Result); return Result; } |

