File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
lldb/source/Plugins/SymbolFile/DWARF Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 13
13
#include " DWARFDebugInfoEntry.h"
14
14
#include " DWARFDeclContext.h"
15
15
#include " DWARFUnit.h"
16
+ #ifdef LLDB_ENABLE_SWIFT
16
17
#include " Plugins/TypeSystem/Swift/TypeSystemSwiftTypeRef.h"
18
+ #endif
17
19
#include " lldb/Symbol/Type.h"
18
20
19
21
#include " llvm/ADT/iterator.h"
@@ -393,8 +395,7 @@ static void GetDeclContextImpl(DWARFDIE die,
393
395
394
396
// Add this DIE's contribution at the end of the chain.
395
397
auto push_ctx = [&](CompilerContextKind kind, llvm::StringRef name) {
396
- // BEGIN SWIFT
397
- //
398
+ #ifdef LLDB_ENABLE_SWIFT
398
399
// FIXME: This layering violation works around a limitation in
399
400
// LLVM that prevents swiftc from emitting both DW_AT_name and
400
401
// DW_AT_linkage_name on forward declarations and typedefs.
@@ -409,7 +410,7 @@ static void GetDeclContextImpl(DWARFDIE die,
409
410
if (!base_name.empty ())
410
411
name = base_name;
411
412
}
412
- // END SWIFT
413
+ # endif
413
414
context.push_back ({kind, ConstString (name)});
414
415
};
415
416
switch (die.Tag ()) {
You can’t perform that action at this time.
0 commit comments