[clang] [clang][bytecode][NFC] Remove Frame.cpp (PR #140750)
Timm Baeder via cfe-commits
cfe-commits at lists.llvm.org
Tue May 20 08:36:08 PDT 2025
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/140750
The file was basically empty. The actual implementation for function frames of the two interpreter life in their own respective files.
>From c6ca3e84103a6c80ea0ecd741a38ba3ce22005ae Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Timm=20B=C3=A4der?= <tbaeder at redhat.com>
Date: Tue, 20 May 2025 17:34:53 +0200
Subject: [PATCH] [clang][bytecode][NFC] Remove Frame.cpp
The file was basically empty. The actual implementation for function
frames of the two interpreter life in their own respective files.
---
clang/lib/AST/ByteCode/Frame.cpp | 14 --------------
clang/lib/AST/ByteCode/Frame.h | 2 +-
clang/lib/AST/CMakeLists.txt | 1 -
3 files changed, 1 insertion(+), 16 deletions(-)
delete mode 100644 clang/lib/AST/ByteCode/Frame.cpp
diff --git a/clang/lib/AST/ByteCode/Frame.cpp b/clang/lib/AST/ByteCode/Frame.cpp
deleted file mode 100644
index 16134aa1db36c..0000000000000
--- a/clang/lib/AST/ByteCode/Frame.cpp
+++ /dev/null
@@ -1,14 +0,0 @@
-//===--- Frame.cpp - Call frame for the VM and AST Walker -------*- C++ -*-===//
-//
-// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
-// See https://llvm.org/LICENSE.txt for license information.
-// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-//
-//===----------------------------------------------------------------------===//
-
-#include "Frame.h"
-
-using namespace clang;
-using namespace clang::interp;
-
-Frame::~Frame() {}
diff --git a/clang/lib/AST/ByteCode/Frame.h b/clang/lib/AST/ByteCode/Frame.h
index 079e4259b0ae8..b67a77a368997 100644
--- a/clang/lib/AST/ByteCode/Frame.h
+++ b/clang/lib/AST/ByteCode/Frame.h
@@ -24,7 +24,7 @@ namespace interp {
/// Base class for stack frames, shared between VM and walker.
class Frame {
public:
- virtual ~Frame();
+ virtual ~Frame() = default;
/// Generates a human-readable description of the call site.
virtual void describe(llvm::raw_ostream &OS) const = 0;
diff --git a/clang/lib/AST/CMakeLists.txt b/clang/lib/AST/CMakeLists.txt
index b5cd14b915673..d4fd7a7f16d53 100644
--- a/clang/lib/AST/CMakeLists.txt
+++ b/clang/lib/AST/CMakeLists.txt
@@ -74,7 +74,6 @@ add_clang_library(clangAST
ByteCode/Descriptor.cpp
ByteCode/Disasm.cpp
ByteCode/EvalEmitter.cpp
- ByteCode/Frame.cpp
ByteCode/Function.cpp
ByteCode/FunctionPointer.cpp
ByteCode/InterpBuiltin.cpp
More information about the cfe-commits
mailing list