llvm-mc: Diagnose misuse (mix) of defined symbols and labels.
authorDaniel Dunbar <daniel@zuster.org>
Mon, 29 Jun 2009 23:43:14 +0000 (23:43 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Mon, 29 Jun 2009 23:43:14 +0000 (23:43 +0000)
commitdce0f3c556474092f10b082adff0a2a58f428317
treef154cc397370fd3b59e2dd20eacb0b3c8f866358
parent9146d0e89c051ea7accf185d97317306c2532c27
llvm-mc: Diagnose misuse (mix) of defined symbols and labels.
 - For example, we diagnose errors on:
--
a:
a = 10
--

 - For now we reject code like:
--
.long a
a = 10
--
   which "as" accepts (on Darwin).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74476 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCContext.h
include/llvm/MC/MCSymbol.h
tools/llvm-mc/AsmParser.cpp