OSDN Git Service

[MC] Properly diagnose badly scoped .cfi_ directives
authorReid Kleckner <rnk@google.com>
Tue, 10 Oct 2017 01:49:21 +0000 (01:49 +0000)
committerReid Kleckner <rnk@google.com>
Tue, 10 Oct 2017 01:49:21 +0000 (01:49 +0000)
commit26935e73bc7cf2fa606e4e099195997713e48f9f
tree724d83749201baf1f2da9471d8c1560bb12b6f8d
parent261c462b950bbcba16c1e401cd551258e5a2a4e7
[MC] Properly diagnose badly scoped .cfi_ directives

Removes two report_fatal_errors.

Implement this by removing EmitCFICommon, and do the checking in
getCurrentDwarfFrameInfo. Have the callers check for null before
dereferencing it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315264 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCStreamer.h
lib/MC/MCStreamer.cpp
test/MC/X86/cfi-scope-errors.s [new file with mode: 0644]