[PATCH] D132874: [clang] Don't emit debug vtable information for consteval functions

2022-09-08 Thread David Blaikie via Phabricator via cfe-commits
dblaikie added inline comments. Comment at: clang/lib/CodeGen/CGDebugInfo.cpp:1763-1766 if (Method->isPure()) SPFlags |= llvm::DISubprogram::SPFlagPureVirtual; else SPFlags |= llvm::DISubprogram::SPFlagVirtual; Seems this change means the

[PATCH] D132874: [clang] Don't emit debug vtable information for consteval functions

2022-08-30 Thread Luke Nihlen via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rGc9aba6007451: [clang] Don't emit debug vtable information for consteval functions (authored by luken-google). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D1

[PATCH] D132874: [clang] Don't emit debug vtable information for consteval functions

2022-08-30 Thread Shafik Yaghmour via Phabricator via cfe-commits
shafik accepted this revision. shafik added a comment. This revision is now accepted and ready to land. LGTM Comment at: clang/lib/CodeGen/CGDebugInfo.cpp:1761 - if (Method->isVirtual()) { + if (Method->isVirtual() && !Method->isConsteval()) { if (Method->isPure()) ---

[PATCH] D132874: [clang] Don't emit debug vtable information for consteval functions

2022-08-30 Thread Luke Nihlen via Phabricator via cfe-commits
luken-google updated this revision to Diff 456641. luken-google added a comment. Change to method call. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D132874/new/ https://reviews.llvm.org/D132874 Files: clang/docs/ReleaseNotes.rst clang/lib/Cod

[PATCH] D132874: [clang] Don't emit debug vtable information for consteval functions

2022-08-30 Thread Luke Nihlen via Phabricator via cfe-commits
luken-google marked an inline comment as done. luken-google added inline comments. Comment at: clang/lib/CodeGen/CGDebugInfo.cpp:1761 - if (Method->isVirtual()) { + if (Method->isVirtual() && !Method->isConsteval()) { if (Method->isPure()) shafik wrote:

[PATCH] D132874: [clang] Don't emit debug vtable information for consteval functions

2022-08-29 Thread Shafik Yaghmour via Phabricator via cfe-commits
shafik added subscribers: aprantl, shafik. shafik added a comment. Maybe @aprantl you want to take a look at this. Comment at: clang/lib/CodeGen/CGDebugInfo.cpp:1761 - if (Method->isVirtual()) { + if (Method->isVirtual() && !Method->isConsteval()) { if (Method->isPure(

[PATCH] D132874: [clang] Don't emit debug vtable information for consteval functions

2022-08-29 Thread Luke Nihlen via Phabricator via cfe-commits
luken-google added reviewers: aaron.ballman, ilya-biryukov. luken-google added a comment. Note that there's still an underlying issue where the linker complains of missing vtable information for both Base and Derived, which I'm treating as a separate issue and will either file or de-dup against

[PATCH] D132874: [clang] Don't emit debug vtable information for consteval functions

2022-08-29 Thread Luke Nihlen via Phabricator via cfe-commits
luken-google created this revision. Herald added a project: All. luken-google requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. Fixes https://github.com/llvm/llvm-project/issues/55065 Repository: rG LLVM Github Monorepo https://reviews.l