llvm/clang/lib/AST/ByteCode/InterpBlock.cpp

//===--- Block.cpp - Allocated blocks for the interpreter -------*- 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
//
//===----------------------------------------------------------------------===//
//
// Defines the classes describing allocated blocks.
//
//===----------------------------------------------------------------------===//

#include "InterpBlock.h"
#include "Pointer.h"

usingnamespaceclang;
usingnamespaceclang::interp;

void Block::addPointer(Pointer *P) {}

void Block::removePointer(Pointer *P) {}

void Block::cleanup() {}

void Block::replacePointer(Pointer *Old, Pointer *New) {}

#ifndef NDEBUG
bool Block::hasPointer(const Pointer *P) const {
  for (const Pointer *C = Pointers; C; C = C->Next) {
    if (C == P)
      return true;
  }
  return false;
}
#endif

DeadBlock::DeadBlock(DeadBlock *&Root, Block *Blk)
    :{}

void DeadBlock::free() {}