diff options
| author | Zachary Turner <zturner@google.com> | 2016-09-09 17:46:17 +0000 |
|---|---|---|
| committer | Zachary Turner <zturner@google.com> | 2016-09-09 17:46:17 +0000 |
| commit | c6d54da891b5b7f6634d41a1c59eab4d5e226711 (patch) | |
| tree | 5d14cccb65e640255902a1280afc4ff91ee13245 /llvm/lib/CodeGen | |
| parent | d938dfb308fe288605c6a24773ab77db8334c54a (diff) | |
| download | bcm5719-llvm-c6d54da891b5b7f6634d41a1c59eab4d5e226711.tar.gz bcm5719-llvm-c6d54da891b5b7f6634d41a1c59eab4d5e226711.zip | |
[pdb] Write PDB TPI Stream from Yaml.
This writes the full sequence of type records described in
Yaml to the TPI stream of the PDB file.
Reviewed By: rnk
Differential Revision: https://reviews.llvm.org/D24316
llvm-svn: 281063
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | 3 | ||||
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp index 52165773012..017fc208870 100644 --- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp @@ -40,7 +40,8 @@ using namespace llvm::codeview; using namespace llvm::msf; CodeViewDebug::CodeViewDebug(AsmPrinter *AP) - : DebugHandlerBase(AP), OS(*Asm->OutStreamer), CurFn(nullptr) { + : DebugHandlerBase(AP), OS(*Asm->OutStreamer), Allocator(), + TypeTable(Allocator), CurFn(nullptr) { // If module doesn't have named metadata anchors or COFF debug section // is not available, skip any debug info related stuff. if (!MMI->getModule()->getNamedMetadata("llvm.dbg.cu") || diff --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h index 2dc33235d80..729012bbd0f 100644 --- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h +++ b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h @@ -36,6 +36,7 @@ struct ClassInfo; /// \brief Collects and handles line tables information in a CodeView format. class LLVM_LIBRARY_VISIBILITY CodeViewDebug : public DebugHandlerBase { MCStreamer &OS; + llvm::BumpPtrAllocator Allocator; codeview::MemoryTypeTableBuilder TypeTable; /// Represents the most general definition range. |

