diff options
author | Reid Kleckner <rnk@google.com> | 2017-10-10 00:57:36 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2017-10-10 00:57:36 +0000 |
commit | 726d93c06ce9c05a0601a8c0dc6ed49d2150c1e6 (patch) | |
tree | b6a599221877810c55c4811f64063f4d0317d568 /test/MC | |
parent | 520952c51d50ff6bd8aaa0955f06011986ea3ebd (diff) | |
download | llvm-726d93c06ce9c05a0601a8c0dc6ed49d2150c1e6.tar.gz |
[MC] Suppress .Lcfi labels when emitting textual assembly
Summary:
This suppresses the generation of .Lcfi labels in our textual assembler.
It was annoying that this generated cascading .Lcfi labels:
llc foo.ll -o - | llvm-mc | llvm-mc
After three trips through MCAsmStreamer, we'd have three labels in the
output when none are necessary. We should only bother creating the
labels and frame data when making a real object file.
This supercedes D38605, which moved the entire .seh_ implementation into
MCObjectStreamer.
This has the advantage that we do more checking when emitting textual
assembly, as a minor efficiency cost. Outputting textual assembly is not
performance critical, so this shouldn't matter.
Reviewers: majnemer, MatzeB
Subscribers: qcolombet, nemanjai, javed.absar, eraman, hiraditya, JDevlieghere, llvm-commits
Differential Revision: https://reviews.llvm.org/D38638
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315259 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC')
-rw-r--r-- | test/MC/AsmParser/seh-unfinished-frame.s | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/MC/AsmParser/seh-unfinished-frame.s b/test/MC/AsmParser/seh-unfinished-frame.s new file mode 100644 index 00000000000..6323e9aebc9 --- /dev/null +++ b/test/MC/AsmParser/seh-unfinished-frame.s @@ -0,0 +1,6 @@ +// RUN: not llvm-mc -filetype=asm -triple x86_64-windows %s -o %t 2>%t.out +// RUN: FileCheck -input-file=%t.out %s + +foo: +.seh_proc foo +// CHECK: Unfinished frame |