Hi John,

On Wed, Mar 3, 2010 at 5:04 PM, Fariborz Jahanian <[email protected]> wrote:
> I have no ideas if this is causing it. But Coverage/targets.c is
> failing on me after an update.
>
> - Fariborz
>
> On Mar 3, 2010, at 4:23 PM, John McCall wrote:
>
>> Author: rjmccall
>> Date: Wed Mar  3 18:23:29 2010
>> New Revision: 97693
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=97693&view=rev
>> Log:
>> Create a TargetMachine whenever we create a CodeGenAction.  The
>> codegen of
>> some builtins will rely on target knowledge.

We really do not want to do this. Please leave this out, at least
until we can discuss this in person.

For now I would much rather deal with the problem this is solving by
adding target specific hooks to provide the necessary bits of
information.

In general:
  1. Clang should not depend on having LLVM codegen support for a
particular backend in order to emit-llvm for that backend.
  2. We should never use a TargetMachine, except to do actual codegen.

We may eventually need to do some refactoring in LLVM to support these
goals, but I would prefer to solve such problems with target specific
hooks (in Clang), than to introduce a dependency on the LLVM
TargetMachine. This may mean duplicating some small bits of
information, but I still prefer it.

 - Daniel

>>
>> Modified:
>>    cfe/trunk/include/clang/CodeGen/ModuleBuilder.h
> _______________________________________________
> cfe-commits mailing list
> [email protected]
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to