[Libclc-dev] [PATCH 1/1] utils: Adapt to llvm r325155

Aaron Watry via Libclc-dev libclc-dev at lists.llvm.org
Tue Feb 20 18:39:57 PST 2018


Looks ok to me.  Fixes the build after I applied your 4-patch
address-space renumbering series for llvm/clang 7.

--Aaron

On Mon, Feb 19, 2018 at 3:22 PM, Jan Vesely via Libclc-dev
<libclc-dev at lists.llvm.org> wrote:
> r325155 ("Pass a reference to a module to the bitcode writer.")
> changed bit writer interface from pointer to reference
>
> Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
> ---
>  utils/prepare-builtins.cpp | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/utils/prepare-builtins.cpp b/utils/prepare-builtins.cpp
> index 0f03e05..de1e804 100644
> --- a/utils/prepare-builtins.cpp
> +++ b/utils/prepare-builtins.cpp
> @@ -105,7 +105,11 @@ int main(int argc, char **argv) {
>      exit(1);
>    }
>
> +#if HAVE_LLVM >= 0x0700
> +  WriteBitcodeToFile(*M, Out->os());
> +#else
>    WriteBitcodeToFile(M, Out->os());
> +#endif
>
>    // Declare success.
>    Out->keep();
> --
> 2.14.3
>
> _______________________________________________
> Libclc-dev mailing list
> Libclc-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/libclc-dev


More information about the Libclc-dev mailing list