1 //===- TypeRecordHelpers.h --------------------------------------*- C++ -*-===// 2 // 3 // The LLVM Compiler Infrastructure 4 // 5 // This file is distributed under the University of Illinois Open Source 6 // License. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 10 #ifndef LLVM_DEBUGINFO_CODEVIEW_TYPERECORDHELPERS_H 11 #define LLVM_DEBUGINFO_CODEVIEW_TYPERECORDHELPERS_H 12 13 #include "llvm/DebugInfo/CodeView/TypeRecord.h" 14 15 namespace llvm { 16 namespace codeview { 17 /// Given an arbitrary codeview type, determine if it is an LF_STRUCTURE, 18 /// LF_CLASS, LF_INTERFACE, LF_UNION, or LF_ENUM with the forward ref class 19 /// option. 20 bool isUdtForwardRef(CVType CVT); 21 22 /// Given a CVType which is assumed to be an LF_MODIFIER, return the 23 /// TypeIndex of the type that the LF_MODIFIER modifies. 24 TypeIndex getModifiedType(const CVType &CVT); 25 } 26 } 27 28 #endif 29