[MC] Emit an error if cfi_startproc is used before a symbol is defined.
authorQuentin Colombet <qcolombet@apple.com>
Tue, 15 Apr 2014 01:17:45 +0000 (01:17 +0000)
committerQuentin Colombet <qcolombet@apple.com>
Tue, 15 Apr 2014 01:17:45 +0000 (01:17 +0000)
commit67ed71068460fa81303c79cb5e1abd910beb6c1d
tree299377f072fd538e93146dd35c8b648421387149
parente8603c43f2e1fcd244fdc9e12f40a59e438b9555
[MC] Emit an error if cfi_startproc is used before a symbol is defined.
Currently, we bind those directives with the last symbol, so if none
has been defined, this would lead to a crash of the compiler.

<rdar://problem/15939159>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206236 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/MCStreamer.cpp
test/MC/ARM/dwarf-cfi-initial-state.s
test/MC/AsmParser/cfi-invalid-startproc.s [new file with mode: 0644]
test/MC/MachO/debug_frame.s
test/MC/PowerPC/ppc64-initial-cfa.s