1 //===--- PrimType.cpp - Types for the constexpr VM --------------*- C++ -*-===//
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
7 //===----------------------------------------------------------------------===//
12 #include "FunctionPointer.h"
13 #include "IntegralAP.h"
16 using namespace clang
;
17 using namespace clang::interp
;
22 size_t primSize(PrimType Type
) {
23 TYPE_SWITCH(Type
, return sizeof(T
));
24 llvm_unreachable("not a primitive type");