llvm-mc: Don't crash when using -n and we see a directive before the initial section.
authorDaniel Dunbar <daniel@zuster.org>
Thu, 9 Sep 2010 22:42:59 +0000 (22:42 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Thu, 9 Sep 2010 22:42:59 +0000 (22:42 +0000)
commit1ab6f2fa7a38a12d8f20157d71e5280a253f2578
treebfae1d28375aef43b1786155c7faa927abe6b58d
parent93bd4d1e6b81b71ce56888e760ce0c9abe44023f
llvm-mc: Don't crash when using -n and we see a directive before the initial section.
 - This is annoying, because we have to scatter this check everywhere that could emit real data, but I see no better solution.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113552 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/MCParser/AsmParser.cpp
test/MC/AsmParser/dash-n.s [new file with mode: 0644]