Add a InitSections method to the streamer interface.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 15 Sep 2010 21:48:40 +0000 (21:48 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 15 Sep 2010 21:48:40 +0000 (21:48 +0000)
commitd80781b98b771d370730ab7c630018f23e202b57
tree96ca95a60f4eb1c0694f785f29529a6e7c21f3b9
parent06f264e504d75f0426eea55b9f9e36c780d8a4fc
Add a InitSections method to the streamer interface.

The ELF implementation now creates text, data and bss to match the gnu as
behavior.

The text streamer still has the old MachO specific behavior since
the testsuite checks that it will error when a directive is given
before a setting the current section for example.

A nice benefit is that -n is not required anymore when producing
ELF files.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114027 91177308-0d34-0410-b5e6-96231b3b80d8
13 files changed:
include/llvm/MC/MCStreamer.h
lib/MC/MCAsmStreamer.cpp
lib/MC/MCAssembler.cpp
lib/MC/MCELFStreamer.cpp
lib/MC/MCLoggingStreamer.cpp
lib/MC/MCMachOStreamer.cpp
lib/MC/MCNullStreamer.cpp
lib/MC/MCParser/AsmParser.cpp
lib/MC/MCParser/ELFAsmParser.cpp
lib/MC/WinCOFFStreamer.cpp
test/MC/ELF/empty.s [new file with mode: 0644]
test/MC/ELF/sleb.s
test/MC/ELF/uleb.s