Changed code because parseIRFile now returns a unique_ptr

The code compiles, but I'm having a linker issue that seems unrelated (can't find x86_64 llvm symbols). So probably best to check if it builds properly before you merge.