Skip to content

Commit ec323e9

Browse files
committed
Delete dead code. (NFC)
1 parent 0ebf26d commit ec323e9

File tree

3 files changed

+0
-64
lines changed

3 files changed

+0
-64
lines changed

lldb/include/lldb/Symbol/SymbolFile.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -280,13 +280,6 @@ class SymbolFile : public PluginInterface {
280280
return false;
281281
}
282282

283-
virtual int GetCompileOptions(const char *option,
284-
std::vector<std::string> &values,
285-
CompileUnit *cu = nullptr) {
286-
values.clear();
287-
return false;
288-
}
289-
290283
// Some symbol files might know if we should always check for inline
291284
// source file and line entries. This virtual function lets
292285
// SymbolFile subclasses control that, but a default implementation

lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -3144,60 +3144,6 @@ bool SymbolFileDWARF::GetCompileOption(const char *option, std::string &value,
31443144
return false;
31453145
}
31463146

3147-
int SymbolFileDWARF::GetCompileOptions(const char *option,
3148-
std::vector<std::string> &values,
3149-
CompileUnit *cu) {
3150-
DWARFDebugInfo *debug_info = DebugInfo();
3151-
3152-
if (debug_info) {
3153-
if (cu) {
3154-
DWARFUnit *dwarf_cu = GetDWARFCompileUnit(cu);
3155-
3156-
if (dwarf_cu) {
3157-
const DWARFBaseDIE die = dwarf_cu->GetUnitDIEOnly();
3158-
if (die) {
3159-
const char *flags =
3160-
die.GetAttributeValueAsString(DW_AT_APPLE_flags, NULL);
3161-
3162-
if (flags) {
3163-
if (strstr(flags, option)) {
3164-
Args compiler_args(flags);
3165-
3166-
return OptionParsing::GetOptionValuesAsStrings(compiler_args,
3167-
option, values);
3168-
}
3169-
}
3170-
}
3171-
}
3172-
} else {
3173-
const uint32_t num_compile_units = GetNumCompileUnits();
3174-
3175-
for (uint32_t cu_idx = 0; cu_idx < num_compile_units; ++cu_idx) {
3176-
DWARFUnit *dwarf_cu = debug_info->GetUnitAtIndex(cu_idx);
3177-
3178-
if (dwarf_cu) {
3179-
const DWARFBaseDIE die = dwarf_cu->GetUnitDIEOnly();
3180-
if (die) {
3181-
const char *flags =
3182-
die.GetAttributeValueAsString(DW_AT_APPLE_flags, NULL);
3183-
3184-
if (flags) {
3185-
if (strstr(flags, option)) {
3186-
Args compiler_args(flags);
3187-
3188-
return OptionParsing::GetOptionValuesAsStrings(compiler_args,
3189-
option, values);
3190-
}
3191-
}
3192-
}
3193-
}
3194-
}
3195-
}
3196-
}
3197-
3198-
return 0;
3199-
}
3200-
32013147
TypeSP SymbolFileDWARF::ParseType(const SymbolContext &sc, const DWARFDIE &die,
32023148
bool *type_is_new_ptr) {
32033149
if (!die)

lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,9 +223,6 @@ class SymbolFileDWARF : public lldb_private::SymbolFile,
223223
bool GetCompileOption(const char *option, std::string &value,
224224
lldb_private::CompileUnit *cu = nullptr) override;
225225

226-
int GetCompileOptions(const char *option, std::vector<std::string> &value,
227-
lldb_private::CompileUnit *cu = nullptr) override;
228-
229226
void PreloadSymbols() override;
230227

231228
std::recursive_mutex &GetModuleMutex() const override;

0 commit comments

Comments
 (0)