[Lldb-commits] [PATCH] D13073: Add an expression parser for Go
Ryan Brown via lldb-commits
lldb-commits at lists.llvm.org
Wed Sep 23 16:41:41 PDT 2015
ribrdb added a comment.
Hmm. I assumed you're using clang to generate llvm IR, is that not the case?
I don't really want to write a whole go compiler.
Right now I'm interpreting the AST using the ValueObject API. This also lets me reuse the error checking and things implemented in the type system. Reimplementing this in IR seems like it would be more complicated and harder to understand/maintain.
Another concern I have is that the go stack is not compatible with c. If we're going to execute jited code we'd probably also need to allocate a separate stack.
More information about the lldb-commits