summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-11-12 03:17:33 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-11-12 03:17:33 +0000
commitd0692a28689fcf15a9737b67f415fdbb9e13dcc5 (patch)
treea230603f29062f22109bbc13fd84bdc0bc8f82d9
parent4b0c118713a1d9e062ac0f795cf0c92360473140 (diff)
downloadbcm5719-llvm-d0692a28689fcf15a9737b67f415fdbb9e13dcc5.tar.gz
bcm5719-llvm-d0692a28689fcf15a9737b67f415fdbb9e13dcc5.zip
Revert "Use a function_ref now that it works (r221753)."
This reverts commit r221756. David Blaikie pointed out it was unsafe. llvm-svn: 221761
-rw-r--r--llvm/include/llvm/Linker/Linker.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/Linker/Linker.h b/llvm/include/llvm/Linker/Linker.h
index 4d1a32d7810..d1c02c241d5 100644
--- a/llvm/include/llvm/Linker/Linker.h
+++ b/llvm/include/llvm/Linker/Linker.h
@@ -11,8 +11,8 @@
#define LLVM_LINKER_LINKER_H
#include "llvm/ADT/SmallPtrSet.h"
-#include "llvm/ADT/STLExtras.h"
+#include <functional>
namespace llvm {
class DiagnosticInfo;
@@ -25,7 +25,7 @@ class StructType;
/// something with it after the linking.
class Linker {
public:
- typedef function_ref<void(const DiagnosticInfo &)>
+ typedef std::function<void(const DiagnosticInfo &)>
DiagnosticHandlerFunction;
Linker(Module *M, DiagnosticHandlerFunction DiagnosticHandler);
OpenPOWER on IntegriCloud