Training courses

Kernel and Embedded Linux

Bootlin training courses

Embedded Linux, kernel,
Yocto Project, Buildroot, real-time,
graphics, boot time, debugging...

Bootlin logo

Elixir Cross Referencer

//==- IPDBSectionContrib.h - Interfaces for PDB SectionContribs --*- C++ -*-==//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#ifndef LLVM_DEBUGINFO_PDB_IPDBSECTIONCONTRIB_H
#define LLVM_DEBUGINFO_PDB_IPDBSECTIONCONTRIB_H

#include "PDBTypes.h"

namespace llvm {
namespace pdb {

/// IPDBSectionContrib defines an interface used to represent section
/// contributions whose information are stored in the PDB.
class IPDBSectionContrib {
public:
  virtual ~IPDBSectionContrib();

  virtual std::unique_ptr<PDBSymbolCompiland> getCompiland() const = 0;
  virtual uint32_t getAddressSection() const = 0;
  virtual uint32_t getAddressOffset() const = 0;
  virtual uint32_t getRelativeVirtualAddress() const = 0;
  virtual uint64_t getVirtualAddress() const  = 0;
  virtual uint32_t getLength() const = 0;
  virtual bool isNotPaged() const = 0;
  virtual bool hasCode() const = 0;
  virtual bool hasCode16Bit() const = 0;
  virtual bool hasInitializedData() const = 0;
  virtual bool hasUninitializedData() const = 0;
  virtual bool isRemoved() const = 0;
  virtual bool hasComdat() const = 0;
  virtual bool isDiscardable() const = 0;
  virtual bool isNotCached() const = 0;
  virtual bool isShared() const = 0;
  virtual bool isExecutable() const = 0;
  virtual bool isReadable() const = 0;
  virtual bool isWritable() const = 0;
  virtual uint32_t getDataCrc32() const = 0;
  virtual uint32_t getRelocationsCrc32() const = 0;
  virtual uint32_t getCompilandId() const = 0;
};
}
}

#endif // LLVM_DEBUGINFO_PDB_IPDBSECTIONCONTRIB_H