[LLVMdev] Identical types with distinct names

Alkis Evlogimenos alkis at cs.uiuc.edu
Wed Jan 26 17:33:31 PST 2005


On Wednesday 26 January 2005 13:10, Ben Payne wrote:
> Hi,
>
> I'm writing a frontend and I'd like to be able to provide
> names to struct types that mirror the names of the classes in
> the source language.  Unfortunately, some of these generated
> structs are sometimes identical for distinct classes, and so
> LLVM forces them to have the same type and same name.
>
> This makes debugging kind of confusing.  Is there some way to
> get the behavior I want without having to add bogus extra
> components to my structs to distinguish them?

Currently there is not, as LLVM distinguishes types using structural 
equivalence. This is a problem the C++ and Java frontends face as well.

-- 

Alkis




More information about the llvm-dev mailing list