tools: avoid use of std::function
authorSaleem Abdulrasool <compnerd@compnerd.org>
Sun, 25 May 2014 21:37:59 +0000 (21:37 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Sun, 25 May 2014 21:37:59 +0000 (21:37 +0000)
commit65dbbb5dd6c5f8c00e2789e6796962091ab22fb7
treef6d6077b06e2b479998f812cf3e5a6785ae3d530
parente8839a755a338fac5e1205a7bb61f3e7c467bda1
tools: avoid use of std::function

Remove the use of the std::function and replace the capturing lambda with a
non-capturing one, opting to pass the user data down to the context.  This is
needed as std::function is not yet available on all hosted platforms (it
requires RTTI, which breaks on Windows).

Thanks to Nico Rieck for pointing this out!

llvm-svn: 209607
llvm/tools/llvm-readobj/COFFDumper.cpp
llvm/tools/llvm-readobj/Win64EHDumper.cpp
llvm/tools/llvm-readobj/Win64EHDumper.h