[llvm] r282655 - [LTO] Add a FIXME, we shouldn't expose getComdat().

Rafael EspĂ­ndola via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 17 12:02:10 PDT 2016


Should be fixed in r284408.

Cheers,
Rafael

On 12 October 2016 at 21:03, Peter Collingbourne via llvm-commits
<llvm-commits at lists.llvm.org> wrote:
> 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
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>


More information about the llvm-commits mailing list