diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2013-07-21 08:37:58 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2013-07-21 08:37:58 +0000 |
commit | 30c016f41f6e5c2dc594c16af51cfa9369c4e0fa (patch) | |
tree | b4cd63432515598dfab5d5d68981827729cc510f /include/llvm/Transforms/Utils/PromoteMemToReg.h | |
parent | 3cd645701a2948e3d423ca6f98f872e8dd40f403 (diff) | |
download | external_llvm-30c016f41f6e5c2dc594c16af51cfa9369c4e0fa.zip external_llvm-30c016f41f6e5c2dc594c16af51cfa9369c4e0fa.tar.gz external_llvm-30c016f41f6e5c2dc594c16af51cfa9369c4e0fa.tar.bz2 |
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/llvm/Transforms/Utils/PromoteMemToReg.h')
-rw-r--r-- | include/llvm/Transforms/Utils/PromoteMemToReg.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/Transforms/Utils/PromoteMemToReg.h b/include/llvm/Transforms/Utils/PromoteMemToReg.h index fde4b81..22f46e5 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 |