[lld] r197734 - [lld] fix build when LLVM_HAS_VARIADIC_TEMPLATES is false
Nick Kledzik
kledzik at apple.com
Thu Dec 19 14:40:17 PST 2013
Author: kledzik
Date: Thu Dec 19 16:40:17 2013
New Revision: 197734
URL: http://llvm.org/viewvc/llvm-project?rev=197734&view=rev
Log:
[lld] fix build when LLVM_HAS_VARIADIC_TEMPLATES is false
Modified:
lld/trunk/lib/ReaderWriter/ELF/CreateELF.h
Modified: lld/trunk/lib/ReaderWriter/ELF/CreateELF.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/CreateELF.h?rev=197734&r1=197733&r2=197734&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/CreateELF.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/CreateELF.h Thu Dec 19 16:40:17 2013
@@ -99,6 +99,15 @@ typename Traits::result_type createELF(
LLVM_CREATE_ELF_IMPL(std::forward<T1>(t1), std::forward<T2>(t2),
std::forward<T3>(t3))
}
+
+template <class Traits, class T1, class T2, class T3, class T4>
+typename Traits::result_type createELF(
+ std::pair<unsigned char, unsigned char> ident, std::size_t maxAlignment,
+ T1 &&t1, T2 &&t2, T3 &&t3, T4 &&t4) {
+ LLVM_CREATE_ELF_IMPL(std::forward<T1>(t1), std::forward<T2>(t2),
+ std::forward<T3>(t3), std::forward<T4>(t4))
+}
+
#endif // LLVM_HAS_VARIADIC_TEMPLATES
} // end anon namespace
More information about the llvm-commits
mailing list