1//===--- Type.cpp - Types for the constexpr VM ------------------*- C++ -*-===// 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-exception 6// 7//===----------------------------------------------------------------------===// 8 9#include "PrimType.h" 10 11using namespace clang; 12using namespace clang::interp; 13 14namespace clang { 15namespace interp { 16 17size_t primSize(PrimType Type) { 18 TYPE_SWITCH(Type, return sizeof(T)); 19 llvm_unreachable("not a primitive type"); 20} 21 22} // namespace interp 23} // namespace clang 24