implement mc asmparser support for '.', which gets the
authorChris Lattner <sabre@nondot.org>
Wed, 14 Apr 2010 04:40:28 +0000 (04:40 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 14 Apr 2010 04:40:28 +0000 (04:40 +0000)
commitd305035155ef3d138e102434bf5a733ea2e32405
treef1cb1e92a945673af6516c893e00eceebfc044b2
parentff1ef6bdf18abbd2303d5081c1ba812304c2f039
implement mc asmparser support for '.', which gets the
current PC.  rdar://7834775

We now produce an identical .o file compared to the cctools
assembler for something like this:

_f0:
L0:
        jmp L1
        .long . - L0
L1:
        jmp A
        .long . - L1

        .zerofill __DATA,_bss,A,0

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101227 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCParser/MCAsmLexer.h
lib/MC/MCParser/AsmLexer.cpp
lib/MC/MCParser/AsmParser.cpp
test/MC/AsmParser/exprs.s