The sections that the ELF object writer has to create are very simple and
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 2 Dec 2010 03:09:06 +0000 (03:09 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 2 Dec 2010 03:09:06 +0000 (03:09 +0000)
commit6db8a9f3fabefeb00163295f0611d09134651f3f
treedca6d4004a208d63caaec83d13f42f863f40edaa
parent052008bc3d288b44eae5c2e9abe8d78ffd891e2a
The sections that the ELF object writer has to create are very simple and
contain only data. Handle them specially instead of using AddSectionToTheEnd.
This moves a hack from the generic assembler to the elf writer. It is also
a bit faster and should make other improvements easier.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120683 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCAssembler.h
lib/MC/ELFObjectWriter.cpp
lib/MC/MCAssembler.cpp