1 //===- PDBSymbolFunc.h - class representing a function instance -*- 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_PDB_PDBSYMBOLFUNC_H 11 #define LLVM_DEBUGINFO_PDB_PDBSYMBOLFUNC_H 12 13 #include "PDBSymbol.h" 14 #include "PDBTypes.h" 15 16 namespace llvm { 17 18 class raw_ostream; 19 20 class PDBSymbolFunc : public PDBSymbol { 21 public: 22 PDBSymbolFunc(const IPDBSession &PDBSession, 23 std::unique_ptr<IPDBRawSymbol> FuncSymbol); 24 25 void dump(PDBSymDumper &Dumper) const override; 26 27 std::unique_ptr<PDBSymbolTypeFunctionSig> getSignature() const; 28 std::unique_ptr<PDBSymbolTypeUDT> getClassParent() const; 29 std::unique_ptr<IPDBEnumChildren<PDBSymbolData>> getArguments() const; 30 31 DECLARE_PDB_SYMBOL_CONCRETE_TYPE(PDB_SymType::Function) 32 33 FORWARD_SYMBOL_METHOD(getAccess) 34 FORWARD_SYMBOL_METHOD(getAddressOffset) 35 FORWARD_SYMBOL_METHOD(getAddressSection) 36 FORWARD_SYMBOL_METHOD(getClassParentId) 37 FORWARD_SYMBOL_METHOD(isCompilerGenerated) 38 FORWARD_SYMBOL_METHOD(isConstType) 39 FORWARD_SYMBOL_METHOD(hasCustomCallingConvention) 40 FORWARD_SYMBOL_METHOD(hasFarReturn) 41 FORWARD_SYMBOL_METHOD(hasAlloca) 42 FORWARD_SYMBOL_METHOD(hasEH) 43 FORWARD_SYMBOL_METHOD(hasEHa) 44 FORWARD_SYMBOL_METHOD(hasInlAsm) 45 FORWARD_SYMBOL_METHOD(hasLongJump) 46 FORWARD_SYMBOL_METHOD(hasSEH) 47 FORWARD_SYMBOL_METHOD(hasSecurityChecks) 48 FORWARD_SYMBOL_METHOD(hasSetJump) 49 FORWARD_SYMBOL_METHOD(hasInterruptReturn) 50 FORWARD_SYMBOL_METHOD(isIntroVirtualFunction) 51 FORWARD_SYMBOL_METHOD(hasInlineAttribute) 52 FORWARD_SYMBOL_METHOD(isNaked) 53 FORWARD_SYMBOL_METHOD(isStatic) 54 FORWARD_SYMBOL_METHOD(getLength) 55 FORWARD_SYMBOL_METHOD(getLexicalParentId) 56 FORWARD_SYMBOL_METHOD(getLocalBasePointerRegisterId) 57 FORWARD_SYMBOL_METHOD(getLocationType) 58 FORWARD_SYMBOL_METHOD(getName) 59 FORWARD_SYMBOL_METHOD(hasFramePointer) 60 FORWARD_SYMBOL_METHOD(hasNoInlineAttribute) 61 FORWARD_SYMBOL_METHOD(hasNoReturnAttribute) 62 FORWARD_SYMBOL_METHOD(isUnreached) 63 FORWARD_SYMBOL_METHOD(getNoStackOrdering) 64 FORWARD_SYMBOL_METHOD(hasOptimizedCodeDebugInfo) 65 FORWARD_SYMBOL_METHOD(isPureVirtual) 66 FORWARD_SYMBOL_METHOD(getRelativeVirtualAddress) 67 FORWARD_SYMBOL_METHOD(getSymIndexId) 68 FORWARD_SYMBOL_METHOD(getToken) 69 FORWARD_SYMBOL_METHOD(getTypeId) 70 FORWARD_SYMBOL_METHOD(isUnalignedType) 71 FORWARD_SYMBOL_METHOD(getUndecoratedName) 72 FORWARD_SYMBOL_METHOD(isVirtual) 73 FORWARD_SYMBOL_METHOD(getVirtualAddress) 74 FORWARD_SYMBOL_METHOD(getVirtualBaseOffset) 75 FORWARD_SYMBOL_METHOD(isVolatileType) 76 }; 77 78 } // namespace llvm 79 80 #endif // LLVM_DEBUGINFO_PDB_PDBSYMBOLFUNC_H 81