From f5284c66b8b70706e9450c9035a083b01eb78635 Mon Sep 17 00:00:00 2001 From: Daniel Berlin Date: Wed, 22 Feb 2017 22:20:53 +0000 Subject: [PATCH] Add pair conversion functions to BasicBlockEdge. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@295888 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/IR/Dominators.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/llvm/IR/Dominators.h b/include/llvm/IR/Dominators.h index e39ef64e699..db512e10108 100644 --- a/include/llvm/IR/Dominators.h +++ b/include/llvm/IR/Dominators.h @@ -46,6 +46,10 @@ class BasicBlockEdge { public: BasicBlockEdge(const BasicBlock *Start_, const BasicBlock *End_) : Start(Start_), End(End_) { } + BasicBlockEdge(const std::pair &Pair) + : Start(Pair.first), End(Pair.second) {} + BasicBlockEdge(const std::pair &Pair) + : Start(Pair.first), End(Pair.second) {} const BasicBlock *getStart() const { return Start; } -- 2.50.1