[PATCH] Add support for subsections to the ELF assembler. Fixes PR8717.

Rafael EspĂ­ndola rafael.espindola at gmail.com
Sun Apr 14 15:39:14 PDT 2013


>> Can't you pass the insertion point with the semantics of "insert after this"?
>
> What if the list is empty?

Duh :-(

Good news is that we use an iplist, so it has a sentinel:

// The ilist class is implemented by allocating a 'tail' node when the list is
// created (using ilist_traits<>::createSentinel()).  This tail node is
// absolutely required because the user must be able to compute end()-1. Because
// of this, users of the direct next/prev links will see an extra link on the
// end of the list, which should be ignored.

So you can use its regular insertion logic.


> Thanks,
> --
> Peter

Cheers,
Rafael



More information about the llvm-commits mailing list