diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-03-05 20:09:15 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-03-05 20:09:15 +0000 |
commit | fc5436c95132cbbf3c2fc950d3c5906cc8ed62dd (patch) | |
tree | 9555e07e32414c6e43d3213e2256b1c700a1a441 /lib/MC/MCELFStreamer.cpp | |
parent | 82d372e12bc20de0a37c23a9a1f288f4fda0dae2 (diff) | |
download | llvm-fc5436c95132cbbf3c2fc950d3c5906cc8ed62dd.tar.gz llvm-fc5436c95132cbbf3c2fc950d3c5906cc8ed62dd.tar.bz2 llvm-fc5436c95132cbbf3c2fc950d3c5906cc8ed62dd.tar.xz |
Always print the implicit .text at the start of an asm file.
Before llvm-mc would print it, but llc was assuming that it would produce
another section changing directive before one was needed. That assumption is
false with inline asm.
Fixes PR19049.
Another option would be to always create the section, but in the asm printer
avoid printing sections changes during initialization. That would work, but
* We do use the fact that llvm-mc prints it in testing. The tests can be changed
if needed.
* A quick poll on IRC suggest that most developers prefer the implicit .text to
be printed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203001 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCELFStreamer.cpp')
-rw-r--r-- | lib/MC/MCELFStreamer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/MC/MCELFStreamer.cpp b/lib/MC/MCELFStreamer.cpp index 9ff9665d52..5f6a889769 100644 --- a/lib/MC/MCELFStreamer.cpp +++ b/lib/MC/MCELFStreamer.cpp @@ -38,7 +38,7 @@ using namespace llvm; MCELFStreamer::~MCELFStreamer() { } -void MCELFStreamer::InitSections(bool Force) { +void MCELFStreamer::InitSections() { // This emulates the same behavior of GNU as. This makes it easier // to compare the output as the major sections are in the same order. SwitchSection(getContext().getObjectFileInfo()->getTextSection()); |