[llvm] r282655 - [LTO] Add a FIXME, we shouldn't expose getComdat().
Peter Collingbourne via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 12 18:03:03 PDT 2016
What I meant was that we should just expose a string or something here,
rather than the Comdat pointer.
Peter
On Wed, Sep 28, 2016 at 5:31 PM, Davide Italiano via llvm-commits <
llvm-commits at lists.llvm.org> wrote:
> Author: davide
> Date: Wed Sep 28 19:31:45 2016
> New Revision: 282655
>
> URL: http://llvm.org/viewvc/llvm-project?rev=282655&view=rev
> Log:
> [LTO] Add a FIXME, we shouldn't expose getComdat().
>
> Thanks to Peter for the suggestion.
>
> Modified:
> llvm/trunk/include/llvm/LTO/LTO.h
>
> Modified: llvm/trunk/include/llvm/LTO/LTO.h
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/
> llvm/LTO/LTO.h?rev=282655&r1=282654&r2=282655&view=diff
> ============================================================
> ==================
> --- llvm/trunk/include/llvm/LTO/LTO.h (original)
> +++ llvm/trunk/include/llvm/LTO/LTO.h Wed Sep 28 19:31:45 2016
> @@ -175,6 +175,8 @@ public:
> // FIXME: Expose a thread-local flag for module asm symbols.
> return GV && GV->isThreadLocal();
> }
> +
> + //FIXME: We shouldn't expose this information.
> Expected<const Comdat *> getComdat() const {
> if (!GV)
> return nullptr;
> @@ -191,6 +193,7 @@ public:
> return GO->getComdat();
> return nullptr;
> }
> +
> uint64_t getCommonSize() const {
> assert(Flags & object::BasicSymbolRef::SF_Common);
> if (!GV)
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
--
--
Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161012/e1b53be5/attachment.html>
More information about the llvm-commits
mailing list