[cfe-dev] Compiling string in memory not working because of an assert
Matthieu Brucher via cfe-dev
cfe-dev at lists.llvm.org
Sat Jul 21 06:24:21 PDT 2018
Hi all,
I'm trying to build a string from memory using FrontendInputFile. As it cqn
take a memory buffer or a file, it should work.
Unfortunately, in FrontendAction, there is a StringRef InputFile =
Input.getFile() which logically fails.
Is this not supported? If so, why doesn't it fail with a more explanatory
message? Why would there still be the API if frontendAction doesn't work
with memory buffer? And if it's supposed to work, what happened?
Cheers,
Matthieu
--
Quantitative analyst, Ph.D.
Blog: http://blog.audio-tk.com/
LinkedIn: http://www.linkedin.com/in/matthieubrucher
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20180721/a957c471/attachment.html>
More information about the cfe-dev
mailing list