Thank you so much for this info.
That's exactly what I want.
But, I'm still not sure about using -g.
Let me imagine I am modifying x86 assembly instructions and trying to test it with 'hello.c' to check out the assembly is properly emitted.
I should type "$ llvm-gcc hello.c -o hello" to have the bytecode of 'hello.c'.
And then I can have an x86 assembly mnemonics with "$ llc -march=x86 hello.bc"
Where can I use -g?
llvm-gcc and llc don't seem to have such an option -g.
Forgive my ignorance.
Would you mind telling me that?