[PDB] Correctly use the target machine when writing DBI stream.
authorZachary Turner <zturner@google.com>
Mon, 16 Apr 2018 20:42:06 +0000 (20:42 +0000)
committerZachary Turner <zturner@google.com>
Mon, 16 Apr 2018 20:42:06 +0000 (20:42 +0000)
commitd8d97de51401e8953305613fdfcf8fd3f323f015
treec00fd73c8f4320950659f1011673cbc7aee01c3f
parent2c1dffece66610e30cc71b710b52f855a3738e43
[PDB] Correctly use the target machine when writing DBI stream.

Using Config->is64() will treat ARM64 as Amd64, which is incorrect.
Furthermore, there are more esoteric architectures that could
theoretically be encountered.  Just set it directly to the machine
type, which we already know anyway.

llvm-svn: 330157
lld/COFF/PDB.cpp
llvm/include/llvm/DebugInfo/PDB/Native/DbiStreamBuilder.h
llvm/lib/DebugInfo/PDB/Native/DbiStreamBuilder.cpp