clang  10.0.0svn
Public Member Functions | List of all members
clang::interp::SourceMapper Class Referenceabstract

Interface for classes which map locations to sources. More...

#include "/opt/doxygen-docs/src/llvm/tools/clang/lib/AST/Interp/Source.h"

Inheritance diagram for clang::interp::SourceMapper:
Inheritance graph
[legend]

Public Member Functions

virtual ~SourceMapper ()
 
virtual SourceInfo getSource (Function *F, CodePtr PC) const =0
 Returns source information for a given PC in a function. More...
 
const ExprgetExpr (Function *F, CodePtr PC) const
 Returns the expression if an opcode belongs to one, null otherwise. More...
 
SourceLocation getLocation (Function *F, CodePtr PC) const
 Returns the location from which an opcode originates. More...
 

Detailed Description

Interface for classes which map locations to sources.

Definition at line 102 of file Source.h.

Constructor & Destructor Documentation

◆ ~SourceMapper()

virtual clang::interp::SourceMapper::~SourceMapper ( )
inlinevirtual

Definition at line 104 of file Source.h.

Member Function Documentation

◆ getExpr()

const Expr * SourceMapper::getExpr ( Function F,
CodePtr  PC 
) const

Returns the expression if an opcode belongs to one, null otherwise.

Definition at line 31 of file Source.cpp.

References clang::interp::SourceInfo::asExpr().

Referenced by clang::interp::InterpFrame::getExpr().

◆ getLocation()

SourceLocation SourceMapper::getLocation ( Function F,
CodePtr  PC 
) const

Returns the location from which an opcode originates.

Definition at line 37 of file Source.cpp.

Referenced by clang::interp::InterpFrame::getCallLocation(), and clang::interp::InterpFrame::getLocation().

◆ getSource()

virtual SourceInfo clang::interp::SourceMapper::getSource ( Function F,
CodePtr  PC 
) const
pure virtual

Returns source information for a given PC in a function.

Implemented in clang::interp::InterpState, and clang::interp::EvalEmitter.

Referenced by clang::interp::InterpState::getSource().


The documentation for this class was generated from the following files: