Implement some functions in NativeSession.
authorAmy Huang <akhuang@google.com>
Tue, 14 Apr 2020 00:53:12 +0000 (17:53 -0700)
committerAmy Huang <akhuang@google.com>
Tue, 21 Apr 2020 18:48:40 +0000 (11:48 -0700)
commita6d8a055e92eb4853805d1ad1be0b1a6523524ef
treea255233da393ab7a04c9efb49b7ac5d70c7982c4
parent9a08c3070517dc32d5c9ac96eb0491c11070b6cf
Implement some functions in NativeSession.

Summary:
This change implements readFromExe, and calculating VA and RVA, which
are some of the functionalities that will be used for native PDB reading
for llvm symbolizer.

bug: https://bugs.llvm.org/show_bug.cgi?id=41795

Reviewers: hans, amccarth, rnk

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D78128
llvm/include/llvm/DebugInfo/PDB/Native/NativeSession.h
llvm/lib/DebugInfo/PDB/Native/NativeSession.cpp
llvm/lib/DebugInfo/PDB/PDB.cpp
llvm/unittests/DebugInfo/PDB/CMakeLists.txt
llvm/unittests/DebugInfo/PDB/Inputs/SimpleTest.cpp [new file with mode: 0644]
llvm/unittests/DebugInfo/PDB/Inputs/SimpleTest.exe [new file with mode: 0644]
llvm/unittests/DebugInfo/PDB/Inputs/SimpleTest.pdb [new file with mode: 0644]
llvm/unittests/DebugInfo/PDB/NativeSessionTest.cpp [new file with mode: 0644]