Skip to content

Commit 0154c54

Browse files
committed
fixup! remove IsSwift API
1 parent e7c1027 commit 0154c54

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

lldb/include/lldb/lldb-private-types.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ struct SourceLanguage {
119119
bool IsC() const;
120120
bool IsObjC() const;
121121
bool IsCPlusPlus() const;
122-
bool IsSwift() const;
123122
uint16_t name = 0;
124123
uint32_t version = 0;
125124
};

lldb/source/Commands/CommandObjectDWIMPrint.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ void CommandObjectDWIMPrint::DoExecute(StringRef command,
119119
"^<\\S+: 0x[[:xdigit:]]{5,}>\\s*$");
120120

121121
if (GetDebugger().GetShowDontUsePoHint() && target_ptr &&
122-
(language.IsSwift() || language.IsObjC()) &&
122+
(language.AsLanguageType() == lldb::eLanguageTypeSwift ||
123+
language.IsObjC()) &&
123124
std::regex_match(output.data(), swift_class_regex)) {
124125

125126
result.AppendNote(

lldb/source/Target/Language.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,3 @@ bool SourceLanguage::IsObjC() const {
593593
bool SourceLanguage::IsCPlusPlus() const {
594594
return name == llvm::dwarf::DW_LNAME_C_plus_plus;
595595
}
596-
597-
bool SourceLanguage::IsSwift() const {
598-
return name == llvm::dwarf::DW_LNAME_Swift;
599-
}

0 commit comments

Comments
 (0)