================ @@ -0,0 +1,38 @@ +//===----- ABIInfo.h - ABI information access & encapsulation ----- 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 +// +//===----------------------------------------------------------------------===// +/// +/// \file +/// ABI information access & encapsulation +/// +//===----------------------------------------------------------------------===// + +#ifndef LLVM_ABI_ABIINFO_H +#define LLVM_ABI_ABIINFO_H + +#include "llvm/ABI/ABIFunctionInfo.h" +#include "llvm/ABI/Types.h" +#include <cassert> + +namespace llvm { +namespace abi { + +/// Abstract base class for target-specific ABI information. +class ABIInfo { +public: + virtual ~ABIInfo() = default; + + virtual ABIArgInfo classifyReturnType(const Type *RetTy) const = 0; + virtual ABIArgInfo classifyArgumentType(const Type *ArgTy) const = 0; + virtual void computeInfo(ABIFunctionInfo &FI) const; ---------------- vortex73 wrote:
ah must've forgotten to add an `= 0` at the end there. https://github.com/llvm/llvm-project/pull/140112 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits