[PATCH] D96044: DebugInfo: Emit "LocalToUnit" flag on local member function decls.

David Blaikie via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Feb 6 14:31:16 PST 2021


dblaikie accepted this revision.
dblaikie added a comment.
This revision is now accepted and ready to land.

Sounds good. Out of curiosity, how'd you come across this/do you have any particular use case that uses DW_AT_external?



================
Comment at: clang/test/CodeGenCXX/debug-info-class.cpp:27-34
+namespace {
 struct D {
-  D();
-  virtual ~D();
+  D() {}
+  virtual ~D() {}
   void func() {
   }
 };
----------------
Might be better to add a separate class to test this case - modifying this class may reduce coverage of existing features (the vtable homing (well, lack of homing due to `~D` being virtual and inline) would no longer be  tested here, since the type is internal and that'd override the other logic.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D96044/new/

https://reviews.llvm.org/D96044



More information about the cfe-commits mailing list