[PDB] Improve our PDB OMF debug directory entry
authorReid Kleckner <rnk@google.com>
Wed, 2 Aug 2017 23:19:54 +0000 (23:19 +0000)
committerReid Kleckner <rnk@google.com>
Wed, 2 Aug 2017 23:19:54 +0000 (23:19 +0000)
commit8d2cbf2e9b788a544f7e46b200a1be403effc708
treeb123c7c46f4ebed281940571c4cc5fcea43a8017
parent6f046b4dd7ef6e06aa7f037eef812d6625a9608c
[PDB] Improve our PDB OMF debug directory entry

In order to get dbghelp to load our pdb, we have to fill in the
PointerToRawData field as well as the AddressOfRawData field. One is the
file offset and the other is the RVA.

llvm-svn: 309900
lld/COFF/Chunks.h
lld/COFF/Writer.cpp