mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
Revert "Use a function_ref now that it works (r221753)."
This reverts commit r221756. David Blaikie pointed out it was unsafe. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221761 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -11,8 +11,8 @@
|
|||||||
#define LLVM_LINKER_LINKER_H
|
#define LLVM_LINKER_LINKER_H
|
||||||
|
|
||||||
#include "llvm/ADT/SmallPtrSet.h"
|
#include "llvm/ADT/SmallPtrSet.h"
|
||||||
#include "llvm/ADT/STLExtras.h"
|
|
||||||
|
|
||||||
|
#include <functional>
|
||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
class DiagnosticInfo;
|
class DiagnosticInfo;
|
||||||
@@ -25,7 +25,7 @@ class StructType;
|
|||||||
/// something with it after the linking.
|
/// something with it after the linking.
|
||||||
class Linker {
|
class Linker {
|
||||||
public:
|
public:
|
||||||
typedef function_ref<void(const DiagnosticInfo &)>
|
typedef std::function<void(const DiagnosticInfo &)>
|
||||||
DiagnosticHandlerFunction;
|
DiagnosticHandlerFunction;
|
||||||
|
|
||||||
Linker(Module *M, DiagnosticHandlerFunction DiagnosticHandler);
|
Linker(Module *M, DiagnosticHandlerFunction DiagnosticHandler);
|
||||||
|
Reference in New Issue
Block a user