https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/219786
None >From fdc3b7f68fa8d70d6963bb57791e4b29cf644c03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= <[email protected]> Date: Sun, 30 Aug 2026 10:39:51 +0200 Subject: [PATCH] [clang][bytecode] Remove unused SourceMapper functions --- clang/lib/AST/ByteCode/Source.cpp | 12 ------------ clang/lib/AST/ByteCode/Source.h | 6 ------ 2 files changed, 18 deletions(-) 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 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
