Type.cpp 644 B

1234567891011121314151617181920212223
  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. #include "Type.h"
  9. using namespace clang;
  10. using namespace clang::interp;
  11. namespace clang {
  12. namespace interp {
  13. size_t primSize(PrimType Type) {
  14. TYPE_SWITCH(Type, return sizeof(T));
  15. llvm_unreachable("not a primitive type");
  16. }
  17. } // namespace interp
  18. } // namespace clang