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