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