Hey dev team! I've been using LLVMSharp to create my own programming language for a few days now, and am still learning the ropes so it is definitely possible that I have made a mistake or have otherwise messed up but I don't think that my code could result in an error like the one I am seeing.
The gist of what's happening is that calling LLVMModuleRef.Dump() appears to only place '\n' characters when attempting to create a new line, thus creating issues when trying to view the resulting dump on a windows computer.
For instance, calling .Dump() on a program which I have generated results in this formatting (cut off for brevity):
To fix this, I am simply using .PrintToString() instead and appending a .ReplaceLineEndings(), but a fix in the library itself would be much better to work with.
Hey dev team! I've been using LLVMSharp to create my own programming language for a few days now, and am still learning the ropes so it is definitely possible that I have made a mistake or have otherwise messed up but I don't think that my code could result in an error like the one I am seeing.
The gist of what's happening is that calling
LLVMModuleRef.Dump()
appears to only place'\n'
characters when attempting to create a new line, thus creating issues when trying to view the resulting dump on a windows computer.For instance, calling
.Dump()
on a program which I have generated results in this formatting (cut off for brevity):To fix this, I am simply using
.PrintToString()
instead and appending a.ReplaceLineEndings()
, but a fix in the library itself would be much better to work with.Thank you for reading this!