[Mesa-dev] [PATCH v1] clover/llvm: Drop support for LLVM < 3.9.

Francisco Jerez currojerez at riseup.net
Fri Oct 13 18:43:20 UTC 2017


Emil Velikov <emil.l.velikov at gmail.com> writes:

> Hi Vedran,
>
> Just pushed the LLVM version bump, so this patch should be able to go in.
> I won't be able to offer any review here, apart from a small suggestion.
>
> On 9 October 2017 at 00:08, Vedran Miletić <vedran at miletic.net> wrote:
>
>>  #include <clang/Basic/TargetInfo.h>
>>  #include <clang/Frontend/CodeGenOptions.h>
>> @@ -63,11 +56,7 @@
>>  namespace clover {
>>     namespace llvm {
>>        namespace compat {
>> -#if HAVE_LLVM >= 0x0307
>>           typedef ::llvm::TargetLibraryInfoImpl target_library_info;
>> -#else
>> -         typedef ::llvm::TargetLibraryInfo target_library_info;
>> -#endif
>>
> With the guards gone, one should be able to remove/inline compat stuff
> like this.
> Not sure how much it matters or if one isn't going to need anyway for
> newer LLVM.
>

Agree with Emil, a few of these compatibility defininitions now become
trivial and could be folded into their uses.  Still seems like a good
start, patch is:

Reviewed-by: Francisco Jerez <currojerez at riseup.net>

> -Emil
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20171013/6a0fa628/attachment-0001.sig>


More information about the mesa-dev mailing list