Fix build failures against 3.7.1 and 3.8.0

57 views
Skip to first unread message

Merck Hung

unread,
Mar 24, 2016, 3:37:48 AM3/24/16
to MCLinker
Hi there,

I tried to get mclinker through llvm-3.7.1 and llvm-3.8.0 releases.
The patch for llvm-3.7.1 was to correct C++11 compatibility and deal with the migration of llvm::opt::OptTable.

The patch for llvm-3.8.0 fixes the build, though it may not be in the right direction, since llvm-3.8.0 had changed the ilist_node class drastically.
Switching to ilist_node_with_parent<> template seems like a good one, but it turns out the mcld::Fragment has to implement getSublistAccess() method as well.
For a quick trial, I just mimic what llvm-3.7.0 had had. Cloned a copy and renamed it to mcld::mcld_ilist_node<>.
Again, it's an informal fix.

Thanks,
Merck Hung




0001-Fixed-for-LLVM-3.7.1-build.patch
0001-Fixed-for-LLVM-3.8.0-build.patch

Diana Chen

unread,
Mar 25, 2016, 5:54:21 AM3/25/16
to Merck Hung, MCLinker
Hi Merck, 

Thanks for your patches. I just updated mclinker for building with latest llvm trunk. Please check the latest commit
Please let me know if you have any suggestion or question. Thank you.

-Diana

--
You received this message because you are subscribed to the Google Groups "MCLinker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mclinker+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages