[llvm] r221761 - Revert "Use a function_ref now that it works (r221753)."
Rafael Espindola
rafael.espindola at gmail.com
Tue Nov 11 19:17:33 PST 2014
Author: rafael
Date: Tue Nov 11 21:17:33 2014
New Revision: 221761
URL: http://llvm.org/viewvc/llvm-project?rev=221761&view=rev
Log:
Revert "Use a function_ref now that it works (r221753)."
This reverts commit r221756.
David Blaikie pointed out it was unsafe.
Modified:
llvm/trunk/include/llvm/Linker/Linker.h
Modified: llvm/trunk/include/llvm/Linker/Linker.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Linker/Linker.h?rev=221761&r1=221760&r2=221761&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Linker/Linker.h (original)
+++ llvm/trunk/include/llvm/Linker/Linker.h Tue Nov 11 21:17:33 2014
@@ -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);
More information about the llvm-commits
mailing list