<div dir="ltr"><div>Hello,</div><div> </div><div>I am a presently doing undergraduate studies at IIIT-Delhi and have been trying to install LLVM and facing some issues installing it which you guys could help resolving. I am able to generate the byte code but unable to generate the assembly code from the byte code. Below is the commands that I executed along with the error.</div>
<div> </div><div> </div><div> </div><div>clang hello.c -o hello<br></div><div>clang -O3 -emit-llvm hello.c -c -o hello.bc<br></div><div>llvm-dis < hello.bc | less </div><div>or</div><div>llc hello.bc -o hello.s<br></div>
<div>on running any of the last two lines I am getting an error which I an unable to resolve and understand:</div><div> </div><div>llvm-dis: invalid module_code_globalvar record</div><div> </div><div>Hoping for an early response.</div>
<div> </div><div>Thanks</div><div>Paritosh Mittal</div></div>