The Floating Brain via llvm-dev
2018-Aug-29 02:09 UTC
[llvm-dev] Put ToolInvoker Output Into a String
Hello! So I am running clang programmatically using clang::tooling::ToolInvocation, however I dont want anything to touch the disk. I am able to read from a virtual file using clang::tooling::ToolInvocation::mapVirtualFile , however I dont know how to output to a virtual file or just to an std::string or char* , I tried passing -o out.S -ivfsoverlay out.S but it still writes to disk and as far as I can tell does not write to the memory I created. If this isn't the right place for this post or if I need to clarify something please let me know! Thank you - TFB -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180829/1c519852/attachment.html>
Dean Michael Berris via llvm-dev
2018-Aug-29 02:22 UTC
[llvm-dev] Put ToolInvoker Output Into a String
> On 29 Aug 2018, at 12:09, The Floating Brain via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > Hello! > > So I am running clang programmatically using clang::tooling::ToolInvocation, however I dont want anything to touch the disk. I am able to read from a virtual file using clang::tooling::ToolInvocation::mapVirtualFile , however I dont know how to output to a virtual file or just to an std::string or char* , I tried passing -o out.S -ivfsoverlay out.S but it still writes to disk and as far as I can tell does not write to the memory I created. > > If this isn't the right place for this post or if I need to clarify something please let me know!I think you want to be sending questions about clang and clang-related tooling questions to the cfe-dev@ mailing list instead. Cheers -- Dean
The Floating Brain via llvm-dev
2018-Aug-29 22:54 UTC
[llvm-dev] Put ToolInvoker Output Into a String
Thank you, I will re-post there! ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ On August 28, 2018 10:22 PM, Dean Michael Berris <dean.berris at gmail.com> wrote:> > On 29 Aug 2018, at 12:09, The Floating Brain via llvm-dev llvm-dev at lists.llvm.org wrote: > > Hello! > > > > So I am running clang programmatically using clang::tooling::ToolInvocation, however I dont want anything to touch the disk. I am able to read from a virtual file using clang::tooling::ToolInvocation::mapVirtualFile , however I dont know how to output to a virtual file or just to an std::string or char* , I tried passing -o out.S -ivfsoverlay out.S but it still writes to disk and as far as I can tell does not write to the memory I created. > > > > > > If this isn't the right place for this post or if I need to clarify something please let me know! > > I think you want to be sending questions about clang and clang-related tooling questions to the cfe-dev@ mailing list instead. > > Cheers > > -- Dean