[codeview] Merge file checksum entries for DIFiles with the same absolute path
authorReid Kleckner <rnk@google.com>
Tue, 31 Oct 2017 21:52:15 +0000 (21:52 +0000)
committerReid Kleckner <rnk@google.com>
Tue, 31 Oct 2017 21:52:15 +0000 (21:52 +0000)
commitbc6f52da82b4a0383fa2f2c4e056b43b6e5ddaf7
tree59ace88ba3fab23901628055b53262414b113fbb
parent374f71ac90dd0b84ede33cecd245e37da2012788
[codeview] Merge file checksum entries for DIFiles with the same absolute path

Change the map key from DIFile* to the absolute path string. Computing
the absolute path isn't expensive because we already have a map that
caches the full path keyed on DIFile*.

llvm-svn: 317041
llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h
llvm/test/DebugInfo/COFF/lines-difile.ll [new file with mode: 0644]