mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-05-14 01:46:41 +00:00

This change adds an option which, in addition to dumping the record layout as is done by -fdump-record-layouts, causes us to compute the layout for all complete record types (rather than the as-needed basis which is usually done by clang), so that we will dump them as well. This is useful if we are looking for layout differences across large code bases without needing to instantiate every type we are interested in. Reviewed By: dexonsmith Differential Revision: https://reviews.llvm.org/D104484
19 lines
287 B
C++
19 lines
287 B
C++
// RUN: %clang_cc1 -emit-llvm-only -fdump-record-layouts-complete %s | FileCheck %s
|
|
|
|
struct a {
|
|
int x;
|
|
};
|
|
|
|
struct b {
|
|
char y;
|
|
} foo;
|
|
|
|
class c {};
|
|
|
|
class d;
|
|
|
|
// CHECK: 0 | struct a
|
|
// CHECK: 0 | struct b
|
|
// CHECK: 0 | class c
|
|
// CHECK-NOT: 0 | class d
|