1 //===--- PrimType.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 #include "Boolean.h"
11 #include "Floating.h"
12 #include "FunctionPointer.h"
13 #include "Pointer.h"
14 
15 using namespace clang;
16 using namespace clang::interp;
17 
18 namespace clang {
19 namespace interp {
20 
21 size_t primSize(PrimType Type) {
22   TYPE_SWITCH(Type, return sizeof(T));
23   llvm_unreachable("not a primitive type");
24 }
25 
26 } // namespace interp
27 } // namespace clang
28