[cfe-dev] The confusing types resulting from compiling STL list

Anton Korobeynikov anton at korobeynikov.info
Wed Jul 28 03:17:34 PDT 2010


> As we see, there is only one entry starting with
> %"class.std::list". This indicates that the list class does not
> distinguish between various type arguments.
This is correct. In LLVM world types which are structurally identical
are the same.

> So, I am wondering why the type information is so?
The names are purely arbitrary. You can easily get e.g. names like "ty1",
"ty2" and so on.

> Such type
> information makes it hard to figure out the type hierarchies in some
> cases.
You should not use (arbitrary) type names for this. Use debug information.

With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University

More information about the cfe-dev mailing list