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 
11 using namespace clang;
12 using namespace clang::interp;
13 
14 namespace clang {
15 namespace interp {
16 
primSize(PrimType Type)17 size_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