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)
commitd29bdc72bbefc938a23b51ac4282548d6e36d317
tree46e466c7949f7f7a47c276194af1d7bd643d9a32
parentb6a667f0335027a8ed673d29af11fc6653781c11
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!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209607 91177308-0d34-0410-b5e6-96231b3b80d8
tools/llvm-readobj/COFFDumper.cpp
tools/llvm-readobj/Win64EHDumper.cpp
tools/llvm-readobj/Win64EHDumper.h