From a260fab18147a4599184de04e1fc157d1e190d2e Mon Sep 17 00:00:00 2001 From: Baurzhan Muftakhidinov Date: Fri, 17 Oct 2014 09:10:32 +0600 Subject: [PATCH] MCStreamer::InitSections changed in LLVM_SVN. Upstream change https://github.com/llvm-mirror/llvm/commit/90ce9f70e23495dc234ff85d4097203dc2efadcc --- src/disasm.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/disasm.cpp b/src/disasm.cpp index a10d83d06aa97..604aef2ce7b9b 100644 --- a/src/disasm.cpp +++ b/src/disasm.cpp @@ -154,7 +154,11 @@ void jl_dump_function_asm(void *Fptr, size_t Fsize, #endif /*useDwarfDirectory*/ true, IP, CE, MAB, ShowInst)); +#ifdef LLVM36 + Streamer->InitSections(true); +#else Streamer->InitSections(); +#endif #ifndef USE_MCJIT // LLVM33 version