Displaying 1 result from an estimated 1 matches for "_zn1ad2ev".
Did you mean:
_zn1ad1ev
2013 Oct 10
1
[LLVMdev] How to handle aliases?
...e
* If an alias is declared to a isWeakForLinker symbol in one object
file, it must be defined in all.
This is very restrictive rule. For example, given
struct A {
virtual ~A() {}
};
struct B : public A {
virtual ~B() {}
};
It is nice for clang to be able to say "I know @_ZN1BD2Ev and
@_ZN1AD2Ev" are the same", but there is no guarantee that other
translation units will see the same classes and clang cannot then
produce an alias. It would be nice to produce an alias even when we
don't have the body of A.
I think the long term solution is to add comdats to the LLVM IR. With
t...