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;
14 const char *lldb_private::GetVoteAsCString(Vote vote) {
26 const char *lldb_private::GetSectionTypeAsCString(lldb::SectionType sect_type) {
28 case eSectionTypeInvalid:
30 case eSectionTypeCode:
32 case eSectionTypeContainer:
34 case eSectionTypeData:
36 case eSectionTypeDataCString:
38 case eSectionTypeDataCStringPointers:
39 return "data-cstr-ptr";
40 case eSectionTypeDataSymbolAddress:
41 return "data-symbol-addr";
42 case eSectionTypeData4:
44 case eSectionTypeData8:
46 case eSectionTypeData16:
47 return "data-16-byte";
48 case eSectionTypeDataPointers:
50 case eSectionTypeDebug:
52 case eSectionTypeZeroFill:
54 case eSectionTypeDataObjCMessageRefs:
55 return "objc-message-refs";
56 case eSectionTypeDataObjCCFStrings:
57 return "objc-cfstrings";
58 case eSectionTypeDWARFDebugAbbrev:
59 return "dwarf-abbrev";
60 case eSectionTypeDWARFDebugAddr:
62 case eSectionTypeDWARFDebugAranges:
63 return "dwarf-aranges";
64 case eSectionTypeDWARFDebugFrame:
66 case eSectionTypeDWARFDebugInfo:
68 case eSectionTypeDWARFDebugLine:
70 case eSectionTypeDWARFDebugLoc:
72 case eSectionTypeDWARFDebugMacInfo:
73 return "dwarf-macinfo";
74 case eSectionTypeDWARFDebugMacro:
76 case eSectionTypeDWARFDebugPubNames:
77 return "dwarf-pubnames";
78 case eSectionTypeDWARFDebugPubTypes:
79 return "dwarf-pubtypes";
80 case eSectionTypeDWARFDebugRanges:
81 return "dwarf-ranges";
82 case eSectionTypeDWARFDebugStr:
84 case eSectionTypeDWARFDebugStrOffsets:
85 return "dwarf-str-offsets";
86 case eSectionTypeELFSymbolTable:
87 return "elf-symbol-table";
88 case eSectionTypeELFDynamicSymbols:
89 return "elf-dynamic-symbols";
90 case eSectionTypeELFRelocationEntries:
91 return "elf-relocation-entries";
92 case eSectionTypeELFDynamicLinkInfo:
93 return "elf-dynamic-link-info";
94 case eSectionTypeDWARFAppleNames:
96 case eSectionTypeDWARFAppleTypes:
98 case eSectionTypeDWARFAppleNamespaces:
99 return "apple-namespaces";
100 case eSectionTypeDWARFAppleObjC:
102 case eSectionTypeEHFrame:
104 case eSectionTypeARMexidx:
106 case eSectionTypeARMextab:
108 case eSectionTypeCompactUnwind:
109 return "compact-unwind";
110 case eSectionTypeGoSymtab:
112 case eSectionTypeAbsoluteAddress:
114 case eSectionTypeOther: