1 //===-- ConvertEnum.cpp -----------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
9 #include "lldb/Utility/ConvertEnum.h"
12 using namespace lldb_private;
15 lldb_private::GetVoteAsCString(Vote vote)
30 lldb_private::GetSectionTypeAsCString(lldb::SectionType sect_type)
34 case eSectionTypeInvalid:
36 case eSectionTypeCode:
38 case eSectionTypeContainer:
40 case eSectionTypeData:
42 case eSectionTypeDataCString:
44 case eSectionTypeDataCStringPointers:
45 return "data-cstr-ptr";
46 case eSectionTypeDataSymbolAddress:
47 return "data-symbol-addr";
48 case eSectionTypeData4:
50 case eSectionTypeData8:
52 case eSectionTypeData16:
53 return "data-16-byte";
54 case eSectionTypeDataPointers:
56 case eSectionTypeDebug:
58 case eSectionTypeZeroFill:
60 case eSectionTypeDataObjCMessageRefs:
61 return "objc-message-refs";
62 case eSectionTypeDataObjCCFStrings:
63 return "objc-cfstrings";
64 case eSectionTypeDWARFDebugAbbrev:
65 return "dwarf-abbrev";
66 case eSectionTypeDWARFDebugAddr:
68 case eSectionTypeDWARFDebugAranges:
69 return "dwarf-aranges";
70 case eSectionTypeDWARFDebugFrame:
72 case eSectionTypeDWARFDebugInfo:
74 case eSectionTypeDWARFDebugLine:
76 case eSectionTypeDWARFDebugLoc:
78 case eSectionTypeDWARFDebugMacInfo:
79 return "dwarf-macinfo";
80 case eSectionTypeDWARFDebugMacro:
82 case eSectionTypeDWARFDebugPubNames:
83 return "dwarf-pubnames";
84 case eSectionTypeDWARFDebugPubTypes:
85 return "dwarf-pubtypes";
86 case eSectionTypeDWARFDebugRanges:
87 return "dwarf-ranges";
88 case eSectionTypeDWARFDebugStr:
90 case eSectionTypeDWARFDebugStrOffsets:
91 return "dwarf-str-offsets";
92 case eSectionTypeELFSymbolTable:
93 return "elf-symbol-table";
94 case eSectionTypeELFDynamicSymbols:
95 return "elf-dynamic-symbols";
96 case eSectionTypeELFRelocationEntries:
97 return "elf-relocation-entries";
98 case eSectionTypeELFDynamicLinkInfo:
99 return "elf-dynamic-link-info";
100 case eSectionTypeDWARFAppleNames:
101 return "apple-names";
102 case eSectionTypeDWARFAppleTypes:
103 return "apple-types";
104 case eSectionTypeDWARFAppleNamespaces:
105 return "apple-namespaces";
106 case eSectionTypeDWARFAppleObjC:
108 case eSectionTypeEHFrame:
110 case eSectionTypeARMexidx:
112 case eSectionTypeARMextab:
114 case eSectionTypeCompactUnwind:
115 return "compact-unwind";
116 case eSectionTypeGoSymtab:
118 case eSectionTypeAbsoluteAddress:
120 case eSectionTypeOther: