clang
15.0.0git
|
Interface for classes which map locations to sources. More...
#include "/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/AST/Interp/Source.h"
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 Expr * | getExpr (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... | |
|
inlinevirtual |
Returns the expression if an opcode belongs to one, null otherwise.
Definition at line 31 of file Source.cpp.
References getSource().
SourceLocation SourceMapper::getLocation | ( | Function * | F, |
CodePtr | PC | ||
) | const |
Returns the location from which an opcode originates.
Definition at line 37 of file Source.cpp.
References clang::interp::SourceInfo::getLoc(), and getSource().
|
pure virtual |
Returns source information for a given PC in a function.
Implemented in clang::interp::InterpState, and clang::interp::EvalEmitter.
Referenced by getExpr(), getLocation(), and clang::interp::InterpState::getSource().