Skip to content

Commit db0cb2d

Browse files
[lldb] Remove ifdef around upstreamed swift enumerations
Otherwise we have functions that don't return a value on all paths and/or compiler warnings.
1 parent bb8b8f0 commit db0cb2d

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

lldb/source/Core/Section.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -462,9 +462,7 @@ bool Section::ContainsOnlyDebugInfo() const {
462462
case eSectionTypeDWARFGNUDebugAltLink:
463463
case eSectionTypeCTF:
464464
case eSectionTypeLLDBTypeSummaries:
465-
#ifdef LLDB_ENABLE_SWIFT
466465
case eSectionTypeSwiftModules:
467-
#endif
468466
return true;
469467
}
470468
return false;

lldb/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,9 +384,7 @@ bool CPlusPlusLanguage::IsCPPMangledName(llvm::StringRef name) {
384384
case Mangled::eManglingSchemeNone:
385385
case Mangled::eManglingSchemeRustV0:
386386
case Mangled::eManglingSchemeD:
387-
#ifdef LLDB_ENABLE_SWIFT
388387
case Mangled::eManglingSchemeSwift:
389-
#endif
390388
return false;
391389
}
392390
}

0 commit comments

Comments
 (0)