AsmParser: record "# line file" context to calculate location for diag
authorTim Northover <tnorthover@apple.com>
Wed, 13 Apr 2016 19:46:54 +0000 (19:46 +0000)
committerTim Northover <tnorthover@apple.com>
Wed, 13 Apr 2016 19:46:54 +0000 (19:46 +0000)
commitc0bef99bb03cbcef5e0700bfdbed6e82970c8416
treec20731cf874216d7034bf71e42c8606f11bd7ef2
parentcbd39897422bf686076e153b088670bab7aeb112
AsmParser: record "# line file" context to calculate location for diag

Since we can't emit diagnostics for missing "jmp 1f" labels until the end of
the file, we need to be able to restore the context used to calculate
file/line. This is basically the "# line file" directive that's being used at
the time the expression is seen.

rdar://25706972

llvm-svn: 266238
llvm/lib/MC/MCParser/AsmParser.cpp
llvm/test/MC/ELF/undefined-directional.s
llvm/test/MC/MachO/undefined-directional.s