[cfe-dev] Advice for fixing some misguided code
Martin J. O'Riordan via cfe-dev
cfe-dev at lists.llvm.org
Fri Aug 26 04:08:52 PDT 2016
Thanks David, I will see if I can rework this using your suggestion. I just "know" there has to be a better way than what I am doing now :-)
All the best,
From: Dr D. Chisnall [mailto:dc552 at hermes.cam.ac.uk] On Behalf Of David Chisnall
Sent: 26 August 2016 11:15
To: Martin J. O'Riordan
Cc: Clang Dev
Subject: Re: [cfe-dev] Advice for fixing some misguided code
On 26 Aug 2016, at 11:04, Martin J. O'Riordan via cfe-dev <cfe-dev at lists.llvm.org> wrote:
> I think that the right solution would be to decouple how I pass this information from CLang to LLVM, and I would like to seek advice from the community on how I might better implement this requirement. Or if there is an existing mechanism I could use to do this.
The best mechanism would be module-level metadata. There’s already a creator node used for emitting DWARF debug info, so extending that to include the complete clang invocation seems like the best bet.
More information about the cfe-dev