File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 14
14
//
15
15
// ===----------------------------------------------------------------------===//
16
16
17
+ #define DEBUG_TYPE " type-metadata-layout"
18
+
17
19
#include " swift/ABI/MetadataValues.h"
18
20
#include " swift/ABI/TypeIdentity.h"
19
21
#include " swift/AST/ASTContext.h"
@@ -1520,6 +1522,15 @@ namespace {
1520
1522
void addVTable () {
1521
1523
if (VTableEntries.empty ())
1522
1524
return ;
1525
+
1526
+ LLVM_DEBUG (
1527
+ llvm::dbgs () << " VTable entries for " << getType ()->getName () << " :\n " ;
1528
+ for (auto entry : VTableEntries) {
1529
+ llvm::dbgs () << " " ;
1530
+ entry.print (llvm::dbgs ());
1531
+ llvm::dbgs () << ' \n ' ;
1532
+ }
1533
+ );
1523
1534
1524
1535
// Only emit a method lookup function if the class is resilient
1525
1536
// and has a non-empty vtable.
You can’t perform that action at this time.
0 commit comments