summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCAsmStreamer.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2014-01-27 17:20:25 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2014-01-27 17:20:25 +0000
commite035cf9ce4911d860f2ea972e6703052a9723aea (patch)
tree8f794328095152a49d5f405bbbdb86ab8cc86806 /llvm/lib/MC/MCAsmStreamer.cpp
parent1b0539c7f642d266536fb132bc5e7a49ec697cf9 (diff)
downloadbcm5719-llvm-e035cf9ce4911d860f2ea972e6703052a9723aea.tar.gz
bcm5719-llvm-e035cf9ce4911d860f2ea972e6703052a9723aea.zip
MC: Add support for .cfi_startproc simple
This commit allows LLVM MC to process .cfi_startproc directives when they are followed by an additional `simple' identifier. This signals to elide the emission of target specific CFI instructions that would normally occur initially. This fixes PR16587. Differential Revision: http://llvm-reviews.chandlerc.com/D2624 llvm-svn: 200227
Diffstat (limited to 'llvm/lib/MC/MCAsmStreamer.cpp')
-rw-r--r--llvm/lib/MC/MCAsmStreamer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/MC/MCAsmStreamer.cpp b/llvm/lib/MC/MCAsmStreamer.cpp
index 12bcb68dd8a..d63716a815e 100644
--- a/llvm/lib/MC/MCAsmStreamer.cpp
+++ b/llvm/lib/MC/MCAsmStreamer.cpp
@@ -925,6 +925,8 @@ void MCAsmStreamer::EmitCFIStartProcImpl(MCDwarfFrameInfo &Frame) {
}
OS << "\t.cfi_startproc";
+ if (Frame.IsSimple)
+ OS << " simple";
EmitEOL();
}
OpenPOWER on IntegriCloud