llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT--> @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) <details> <summary>Changes</summary> --- Full diff: https://github.com/llvm/llvm-project/pull/219786.diff 2 Files Affected: - (modified) clang/lib/AST/ByteCode/Source.cpp (-12) - (modified) clang/lib/AST/ByteCode/Source.h (-6) ``````````diff diff --git a/clang/lib/AST/ByteCode/Source.cpp b/clang/lib/AST/ByteCode/Source.cpp index 412fce2be5737..a56a5becb2b75 100644 --- a/clang/lib/AST/ByteCode/Source.cpp +++ b/clang/lib/AST/ByteCode/Source.cpp @@ -31,15 +31,3 @@ SourceRange SourceInfo::getRange() const { return D->getSourceRange(); return SourceRange(); } - -const Expr *SourceMapper::getExpr(CodePtr PC) const { - return getSource(PC).asExpr(); -} - -SourceLocation SourceMapper::getLocation(CodePtr PC) const { - return getSource(PC).getLoc(); -} - -SourceRange SourceMapper::getRange(CodePtr PC) const { - return getSource(PC).getRange(); -} diff --git a/clang/lib/AST/ByteCode/Source.h b/clang/lib/AST/ByteCode/Source.h index db935da7c7c49..37548f47f9082 100644 --- a/clang/lib/AST/ByteCode/Source.h +++ b/clang/lib/AST/ByteCode/Source.h @@ -130,12 +130,6 @@ class SourceMapper { /// Returns source information for a given PC in a function. virtual SourceInfo getSource(CodePtr PC) const = 0; - - /// Returns the expression if an opcode belongs to one, null otherwise. - const Expr *getExpr(CodePtr PC) const; - /// Returns the location from which an opcode originates. - SourceLocation getLocation(CodePtr PC) const; - SourceRange getRange(CodePtr PC) const; }; } // namespace interp `````````` </details> https://github.com/llvm/llvm-project/pull/219786 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
