summaryrefslogtreecommitdiff
path: root/lib/MC/MCContext.cpp
diff options
context:
space:
mode:
authorMatt Fleming <matt@console-pimps.org>2010-08-16 18:35:43 +0000
committerMatt Fleming <matt@console-pimps.org>2010-08-16 18:35:43 +0000
commit6b2e257e74b2c8e2f93bb244e0c80cb73005b74a (patch)
treeb8c7a1032963f3c677507eae205cbec13e0d7856 /lib/MC/MCContext.cpp
parenta8bf473fb15bbedc78144ec57438f884616283b0 (diff)
downloadllvm-6b2e257e74b2c8e2f93bb244e0c80cb73005b74a.tar.gz
llvm-6b2e257e74b2c8e2f93bb244e0c80cb73005b74a.tar.bz2
llvm-6b2e257e74b2c8e2f93bb244e0c80cb73005b74a.tar.xz
Add ELF ObjectWriter and Streamer support.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111172 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCContext.cpp')
-rw-r--r--lib/MC/MCContext.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/MC/MCContext.cpp b/lib/MC/MCContext.cpp
index 3996334d9b..adf476cf3f 100644
--- a/lib/MC/MCContext.cpp
+++ b/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;
}