[llvm] r355646 - Work around a module build error on the LLDB incremental green dragon bot.

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 11 14:09:04 PDT 2019


On Mon, Mar 11, 2019 at 2:01 PM Adrian Prantl <aprantl at apple.com> wrote:

> You'll see the sad resolution of this two commits further down. (I
> reverted this one, too). There was a header file with a function body that
> used the LLVM_DEBUG macro (which I believe fundamentally cannot work inside
> a non-textual header)
>

Right - if it depends on its inclusion state to define DEBUG_TYPE that's
not modular. I assume that's the case? Oh, it looks like it is the case,
that DEBUG_TYPE is defined within this file, so I don't think there's a
problem with using LLVM_DEBUG here? It's not intended to consume the value
of DEBUG_TYPE from its inclusion context.

Perhaps that's invalid in a modular context if it's ever included somewhere
that also defines DEBUG_TYPE? I'm not sure there.


> and inside of it it called a dump method, thus pulling the reference to
> the dump method into the link.
>

Missed a step here - inside of what it called a dump function? & why was
that a problem? It called a dump function unconditionally rather than only
under the condition that the dump function is defined? I'm not sure how
modules would make/break that.


>
> -- adrian
>
>
> On Mar 11, 2019, at 1:56 PM, David Blaikie <dblaikie at gmail.com> wrote:
>
>
>
> On Thu, Mar 7, 2019 at 2:24 PM Adrian Prantl via llvm-commits <
> llvm-commits at lists.llvm.org> wrote:
>
>> Author: adrian
>> Date: Thu Mar  7 14:25:26 2019
>> New Revision: 355646
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=355646&view=rev
>> Log:
>> Work around a module build error on the LLDB incremental green dragon bot.
>>
>> Modified:
>>     llvm/trunk/include/llvm/module.modulemap
>>
>> Modified: llvm/trunk/include/llvm/module.modulemap
>> URL:
>> http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/module.modulemap?rev=355646&r1=355645&r2=355646&view=diff
>>
>> ==============================================================================
>> --- llvm/trunk/include/llvm/module.modulemap (original)
>> +++ llvm/trunk/include/llvm/module.modulemap Thu Mar  7 14:25:26 2019
>> @@ -353,6 +353,10 @@ module LLVM_Utils {
>>      exclude header "Support/PluginLoader.h"
>>      exclude header "Support/Solaris/sys/regset.h"
>>
>> +    // FIXME: The function bodies in this header pull in
>> +    //        unwanted dependencies that cause linker errors.
>>
>
> What does it pull in & how does it cause linker errors?
>
>
>> +    exclude header "Support/GenericDomTreeConstruction.h"
>> +
>>      // These are intended for textual inclusion.
>>      textual header "Support/ARMTargetParser.def"
>>      textual header "Support/AArch64TargetParser.def"
>>
>>
>> _______________________________________________
>> llvm-commits mailing list
>> llvm-commits at lists.llvm.org
>> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190311/7d463d11/attachment.html>


More information about the llvm-commits mailing list