summaryrefslogtreecommitdiff
path: root/lib/ObjectYAML/COFFYAML.cpp
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2016-06-02 17:10:43 +0000
committerReid Kleckner <rnk@google.com>2016-06-02 17:10:43 +0000
commitfb1a91169a3947049677b4396c93364bd3ca2535 (patch)
tree5e5336a90dc0db522d6163329e2e8cf7b8bcad19 /lib/ObjectYAML/COFFYAML.cpp
parent706cb9d99669929ad66015f1bdd27c015e5a7460 (diff)
[COFF] Expose the PE debug data directory and dump it
This directory is used to find if there is a PDB associated with an executable. I plan to use this functionality to teach llvm-symbolizer whether it should use DIA or DWARF to symbolize a given DLL. Reviewers: majnemer Differential Revision: http://reviews.llvm.org/D20885 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271539 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ObjectYAML/COFFYAML.cpp')
-rw-r--r--lib/ObjectYAML/COFFYAML.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ObjectYAML/COFFYAML.cpp b/lib/ObjectYAML/COFFYAML.cpp
index f3a4f005eb9..02ae0535615 100644
--- a/lib/ObjectYAML/COFFYAML.cpp
+++ b/lib/ObjectYAML/COFFYAML.cpp
@@ -397,7 +397,7 @@ void MappingTraits<COFFYAML::PEHeader>::mapping(IO &IO,
IO.mapOptional("CertificateTable", PH.DataDirectories[COFF::CERTIFICATE_TABLE]);
IO.mapOptional("BaseRelocationTable",
PH.DataDirectories[COFF::BASE_RELOCATION_TABLE]);
- IO.mapOptional("Debug", PH.DataDirectories[COFF::DEBUG]);
+ IO.mapOptional("Debug", PH.DataDirectories[COFF::DEBUG_DIRECTORY]);
IO.mapOptional("Architecture", PH.DataDirectories[COFF::ARCHITECTURE]);
IO.mapOptional("GlobalPtr", PH.DataDirectories[COFF::GLOBAL_PTR]);
IO.mapOptional("TlsTable", PH.DataDirectories[COFF::TLS_TABLE]);