OSDN Git Service

[DWARFv5] Allow ".loc 0" to refer to the root file.
authorPaul Robinson <paul.robinson@sony.com>
Fri, 22 Jun 2018 14:16:11 +0000 (14:16 +0000)
committerPaul Robinson <paul.robinson@sony.com>
Fri, 22 Jun 2018 14:16:11 +0000 (14:16 +0000)
commitfe16001dba2b3f9bb39cb3d1f55e27be0845650a
tree34e9d695830c50115b07620f997b533f732409cb
parentae9a1a8ee73a16d595968781df6dd2324b82a29b
[DWARFv5] Allow ".loc 0" to refer to the root file.

DWARF v5 explicitly represents file #0 in the line table.  Prior
versions did not, so ".loc 0" is still an error in those cases.

Differential Revision: https://reviews.llvm.org/D48452

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@335350 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCDwarf.h
lib/MC/MCContext.cpp
lib/MC/MCParser/AsmParser.cpp
test/MC/ELF/dwarf-loc0.s [new file with mode: 0644]