[clang] [clang][bytecode][NFC] Remove unused function (PR #125201)

via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 31 03:22:18 PST 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: Timm Baeder (tbaederr)

<details>
<summary>Changes</summary>

... and an unused include.

---
Full diff: https://github.com/llvm/llvm-project/pull/125201.diff


1 Files Affected:

- (modified) clang/lib/AST/ByteCode/EvalEmitter.h (-3) 


``````````diff
diff --git a/clang/lib/AST/ByteCode/EvalEmitter.h b/clang/lib/AST/ByteCode/EvalEmitter.h
index e7c9e80d75d9345..2cac2ba2ef22129 100644
--- a/clang/lib/AST/ByteCode/EvalEmitter.h
+++ b/clang/lib/AST/ByteCode/EvalEmitter.h
@@ -17,7 +17,6 @@
 #include "InterpState.h"
 #include "PrimType.h"
 #include "Source.h"
-#include "llvm/Support/Error.h"
 
 namespace clang {
 namespace interp {
@@ -42,8 +41,6 @@ class EvalEmitter : public SourceMapper {
   /// Clean up all resources.
   void cleanup();
 
-  InterpState &getState() { return S; }
-
 protected:
   EvalEmitter(Context &Ctx, Program &P, State &Parent, InterpStack &Stk);
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/125201


More information about the cfe-commits mailing list