Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:44:17

0001 //===- CVDebugRecord.h ------------------------------------------*- C++ -*-===//
0002 //
0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 // See https://llvm.org/LICENSE.txt for license information.
0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0006 //
0007 //===----------------------------------------------------------------------===//
0008 
0009 #ifndef LLVM_OBJECT_CVDEBUGRECORD_H
0010 #define LLVM_OBJECT_CVDEBUGRECORD_H
0011 
0012 #include "llvm/Support/Endian.h"
0013 
0014 namespace llvm {
0015 namespace OMF {
0016 struct Signature {
0017   enum ID : uint32_t {
0018     PDB70 = 0x53445352, // RSDS
0019     PDB20 = 0x3031424e, // NB10
0020     CV50 = 0x3131424e,  // NB11
0021     CV41 = 0x3930424e,  // NB09
0022   };
0023 
0024   support::ulittle32_t CVSignature;
0025   support::ulittle32_t Offset;
0026 };
0027 }
0028 
0029 namespace codeview {
0030 struct PDB70DebugInfo {
0031   support::ulittle32_t CVSignature;
0032   uint8_t Signature[16];
0033   support::ulittle32_t Age;
0034   // char PDBFileName[];
0035 };
0036 
0037 struct PDB20DebugInfo {
0038   support::ulittle32_t CVSignature;
0039   support::ulittle32_t Offset;
0040   support::ulittle32_t Signature;
0041   support::ulittle32_t Age;
0042   // char PDBFileName[];
0043 };
0044 
0045 union DebugInfo {
0046   struct OMF::Signature Signature;
0047   struct PDB20DebugInfo PDB20;
0048   struct PDB70DebugInfo PDB70;
0049 };
0050 }
0051 }
0052 
0053 #endif
0054