class DIScope

Declaration

class DIScope : public DINode { /* full declaration omitted */ };

Description

Base class for scope-like contexts. Base class for lexical scopes and types (which are also declaration contexts). TODO: Separate the concepts of declaration contexts and lexical scopes.

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:471

Inherits from: DINode

Member Variables

Inherited from Metadata:

protected Storage
protected SubclassData1
protected SubclassData16 = 0
protected SubclassData32 = 0

Method Overview

  • protected DIScope(llvm::LLVMContext & C, unsigned int ID, llvm::Metadata::StorageType Storage, unsigned int Tag, ArrayRef<llvm::Metadata *> Ops)
  • public static bool classof(const llvm::Metadata * MD)
  • public inline llvm::StringRef getDirectory() const
  • public llvm::DIFile * getFile() const
  • public inline llvm::StringRef getFilename() const
  • public llvm::StringRef getName() const
  • public llvm::Metadata * getRawFile() const
  • public llvm::DIScope * getScope() const
  • public inline Optional<llvm::StringRef> getSource() const
  • protected ~DIScope()

Inherited from DINode:

Inherited from MDNode:

Inherited from Metadata:

Methods

DIScope(llvm::LLVMContext& C,
        unsigned int ID,
        llvm::Metadata::StorageType Storage,
        unsigned int Tag,
        ArrayRef<llvm::Metadata*> Ops)

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:473

Parameters

llvm::LLVMContext& C
unsigned int ID
llvm::Metadata::StorageType Storage
unsigned int Tag
ArrayRef<llvm::Metadata*> Ops

static bool classof(const llvm::Metadata* MD)

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:499

Parameters

const llvm::Metadata* MD

inline llvm::StringRef getDirectory() const

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:482

llvm::DIFile* getFile() const

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:479

inline llvm::StringRef getFilename() const

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:481

llvm::StringRef getName() const

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:485

llvm::Metadata* getRawFile() const

Description

Return the raw underlying file. A \a DIFile is a \a DIScope, but it doesn't point at a separate file (it\em is the file). If \c this is an \a DIFile, we need to return \c this. Otherwise, return the first operand, which is where all other subclasses store their file pointer.

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:494

llvm::DIScope* getScope() const

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:486

inline Optional<llvm::StringRef> getSource() const

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:483

~DIScope()

Declared at: llvm/include/llvm/IR/DebugInfoMetadata.h:476