-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
An error occurred when slicing C++ code using llvm-slicedr : Declaration may not be in a Comdat! #461
Comments
DG does not support C++ in general. But to solve this particular issue might be possible, you could try forbidding slicing away functions that are mentioned in Comdat. Or event simpler, try not removing any unused functions or globals, a starting point would be this method: dg/tools/include/dg/tools/llvm-slicer.h Line 257 in df6e4e2
|
Thank you for your answer. What should I do specifically, should I modify the source code of DG? |
Yes, that is what I meant. For starters, you may try removing all calls to the method |
Wouldn't doing this have a impact on the slicing effect? Will it might include a lot of code that shouldn't be there? |
Nope, this method removes only functions and globals that are not used in the reachable part of the sliced code. It does just a kind of a cleanup. |
An error occurs when I slice C++ code following the documentation flow: Declaration may not be in a Comdat! . The complete error information is as follows
How can I solve this problem
The text was updated successfully, but these errors were encountered: