[LLVMdev] question on difference of bitcode between C and C++

Eli Friedman eli.friedman at gmail.com
Wed Sep 21 19:30:13 PDT 2011


On Wed, Sep 21, 2011 at 7:01 PM, Fei Jia <j.jiafei at gmail.com> wrote:
> Hi Bill,
> Thanks for reply! I am sorry I didn't express my question clearly.
> Examples may explain well. Now I am trying to analyze the data flow of
> programs. I first compile the C code to bitcode, and then apply our
> algorithm to the bitcode to find the dependency between statements. But as
> to C++ code, there are class, vector, reference, I may need to revise my
> algorithm to analyze bitcode from C++.
>
> I am trying to find such difference of bitcode between C and C++.

There isn't any difference in that sense... in IR, a constructor is
just a function call, a reference is just a pointer, etc.

-Eli




More information about the llvm-dev mailing list