summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2013-07-21 08:37:58 +0000
committerChandler Carruth <chandlerc@gmail.com>2013-07-21 08:37:58 +0000
commit30c016f41f6e5c2dc594c16af51cfa9369c4e0fa (patch)
treeb4cd63432515598dfab5d5d68981827729cc510f /include
parent3cd645701a2948e3d423ca6f98f872e8dd40f403 (diff)
downloadllvm-30c016f41f6e5c2dc594c16af51cfa9369c4e0fa.tar.gz
llvm-30c016f41f6e5c2dc594c16af51cfa9369c4e0fa.tar.bz2
llvm-30c016f41f6e5c2dc594c16af51cfa9369c4e0fa.tar.xz
Make the mem2reg interface use an ArrayRef as it keeps a copy of these
to iterate over. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186788 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Transforms/Utils/PromoteMemToReg.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/Transforms/Utils/PromoteMemToReg.h b/include/llvm/Transforms/Utils/PromoteMemToReg.h
index fde4b81d7f..22f46e5fc9 100644
--- a/include/llvm/Transforms/Utils/PromoteMemToReg.h
+++ b/include/llvm/Transforms/Utils/PromoteMemToReg.h
@@ -15,7 +15,7 @@
#ifndef LLVM_TRANSFORMS_UTILS_PROMOTEMEMTOREG_H
#define LLVM_TRANSFORMS_UTILS_PROMOTEMEMTOREG_H
-#include <vector>
+#include "llvm/ADT/ArrayRef.h"
namespace llvm {
@@ -40,8 +40,8 @@ bool isAllocaPromotable(const AllocaInst *AI);
///
/// If AST is specified, the specified tracker is updated to reflect changes
/// made to the IR.
-void PromoteMemToReg(const std::vector<AllocaInst*> &Allocas,
- DominatorTree &DT, AliasSetTracker *AST = 0);
+void PromoteMemToReg(ArrayRef<AllocaInst *> Allocas, DominatorTree &DT,
+ AliasSetTracker *AST = 0);
} // End llvm namespace