diff options
Diffstat (limited to 'src/ToolBox/superpmi/superpmi-shared/typeutils.h')
-rw-r--r-- | src/ToolBox/superpmi/superpmi-shared/typeutils.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/ToolBox/superpmi/superpmi-shared/typeutils.h b/src/ToolBox/superpmi/superpmi-shared/typeutils.h new file mode 100644 index 0000000000..31cb478020 --- /dev/null +++ b/src/ToolBox/superpmi/superpmi-shared/typeutils.h @@ -0,0 +1,25 @@ +// +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. +// + +//---------------------------------------------------------- +// TypeUtils.h - Utility code for working with managed types +//---------------------------------------------------------- +#ifndef _TypeUtils +#define _TypeUtils + +#include "methodcontext.h" + +class TypeUtils +{ +public: + static const char *GetCorInfoTypeName(CorInfoType type); + static bool IsFloatingPoint(CorInfoType type); + static bool IsPointer(CorInfoType type); + static bool IsValueClass(CorInfoType type); + static bool ValueClassRequiresByref(MethodContext *mc, CORINFO_CLASS_HANDLE clsHnd); + static size_t SizeOfCorInfoType(CorInfoType type); +}; + +#endif
\ No newline at end of file |