diff options
author | Eric Fiselier <eric@efcs.ca> | 2015-07-22 22:43:27 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2015-07-22 22:43:27 +0000 |
commit | 00f512ebdf3e40969b135c4241421d218d37a71f (patch) | |
tree | ff8d6593a80fe17460fd3cabc0505cd3e678b5f9 /llvm/lib/Analysis/Loads.cpp | |
parent | d2a8dc88ff4b309b67232a79bef3dea013e35cf2 (diff) | |
download | bcm5719-llvm-00f512ebdf3e40969b135c4241421d218d37a71f.tar.gz bcm5719-llvm-00f512ebdf3e40969b135c4241421d218d37a71f.zip |
Merge C++03 and C++11 implementations of mem_fn and __mem_fn.
The implementation of mem_fn doesn't actually require any C++11 support.
For some reason there were 17 overloads for mem_fn in C++03 when only one
is needed. This patch removes the extra overloads and uses the same implementation
of mem_fn in C++03 and C++11.
__mem_fn does require variadics to implement the call operator. Instead of
having two entirely different implementations of the __mem_fn struct, this patch
uses the same __mem_fn struct but provides different call operators when
variadics are not available.
The only thing left in <__functional_03> is the C++03 implementation of
std::function.
llvm-svn: 242959
Diffstat (limited to 'llvm/lib/Analysis/Loads.cpp')
0 files changed, 0 insertions, 0 deletions