[PATCH] D44406: [CodeView] Emit HasConstructorOrDestructor class option
Zachary Turner via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 13 10:29:07 PDT 2018
zturner added inline comments.
================
Comment at: lib/CodeGen/AsmPrinter/CodeViewDebug.cpp:1769
+ for (const DINode *Element : Ty->getElements()) {
+ if (auto *Method = dyn_cast_or_null<DISubprogram>(Element)) {
----------------
How does cl behave if you have copy constructor or move constructor? Does it set this flag then?
Also what does this flag really mean? Does it mean "has //non-defaulted// copy constructor or destructor?" Or "has //user-defined// copy-constructor or destructor?" What would it be set to in each of the following cases?
```
struct A {
int x;
};
struct B {
B() = default;
int x;
};
struct C {
C(const C &) {}
};
struct D {
std::string S;
};
```
Can you confirm that with this patch, our behavior matches the behavior of cl in each of these cases? (There may be more cases to think of, but this is at least a good starting point).
Repository:
rL LLVM
https://reviews.llvm.org/D44406
More information about the llvm-commits
mailing list