[LLVMdev] [RFC] Alias should not point to declarations

Rafael EspĂ­ndola rafael.espindola at gmail.com
Wed Mar 12 11:33:18 PDT 2014


> We chatted a bit or IRC and it does look like N_INDR  has the
> behaviour of llvm aliases. An alias to a declaration is a definition
> for example. It is documented here:
> https://developer.apple.com/library/mac/documentation/DeveloperTools/Conceptual/MachORuntime/Reference/reference.html

We discussed this a bit more on IRC today. Fixing pr10367 is more
important now that there is work under way to support comdats, which
would use aliases to implement RTTI for the msvc abi.

It is much easier to design a feature based on what existing tools
(linkers in this case) support and N_INDR is not currently
implemented. On the other hand, adding support for it once it is
implemented should be relatively easy.

The attached patch then effectively just replaces a report_fatal_error
with a proper verifier check that represent what can currently be
implemented.

Tim, can you confirm that it is OK?

Thanks,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.patch
Type: text/x-patch
Size: 15096 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140312/682645ea/attachment.bin>


More information about the llvm-dev mailing list