//===--- InterpStack.cpp - Stack implementation for the VM ------*- 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 "InterpStack.h" #include "Boolean.h" #include "Floating.h" #include "Integral.h" #include "MemberPointer.h" #include "Pointer.h" #include <cassert> #include <cstdlib> usingnamespaceclang; usingnamespaceclang::interp; InterpStack::~InterpStack() { … } void InterpStack::clear() { … } void *InterpStack::grow(size_t Size) { … } void *InterpStack::peekData(size_t Size) const { … } void InterpStack::shrink(size_t Size) { … } void InterpStack::dump() const { … }