brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 854e575 Raw
28 lines · cpp
1//===-- tools/f18/stub-evaluate.cpp ---------------------------------------===//2//3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4// See https://llvm.org/LICENSE.txt for license information.5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6//7//===----------------------------------------------------------------------===//8 9// The parse tree has slots in which pointers to the results of semantic10// analysis may be placed.  When using the parser without the semantics11// libraries, as here, we need to stub out the dependences on the external12// deleters, which will never actually be called.13 14namespace Fortran::evaluate {15struct GenericExprWrapper {16  static void Deleter(GenericExprWrapper *);17};18void GenericExprWrapper::Deleter(GenericExprWrapper *) {}19struct GenericAssignmentWrapper {20  static void Deleter(GenericAssignmentWrapper *);21};22void GenericAssignmentWrapper::Deleter(GenericAssignmentWrapper *) {}23struct ProcedureRef {24  static void Deleter(ProcedureRef *);25};26void ProcedureRef::Deleter(ProcedureRef *) {}27} // namespace Fortran::evaluate28