An error about bitcode

Hi,

When I execute the command bellow:
$llvm-dis Example.bc -o Example.ll
I get the following wrong message:
llvm-dis:Bitcode stream should be a multiple of 4 bytes in length

Who can help me?

2010-04-07

How did you generate Example.bc?

It seems Example.bc is not a proper LLVM bytecode.

Hi,

When I execute the command bellow:
$llvm-dis Example.bc -o Example.ll
I get the following wrong message:
llvm-dis:Bitcode stream should be a multiple of 4 bytes in length

this means that Example.bc does not contain bitcode.

Ciao,

Duncan.

I have found the source of the error, I forgot to add the -emit-llvm option when I generated Example.bc .
Thank you very much!

Best Regards!
Qiuping

2010-04-07

please attach the Example.bc.