diff options
author | Nico Rieck <nico.rieck@gmail.com> | 2015-08-06 19:10:45 +0000 |
---|---|---|
committer | Nico Rieck <nico.rieck@gmail.com> | 2015-08-06 19:10:45 +0000 |
commit | 78199518c43a04fecf9886fa86202677f6a1525d (patch) | |
tree | 3dbee125e2fe66aa50c46625093cc7741aadf766 /llvm/lib/Analysis/MemDepPrinter.cpp | |
parent | a7bf96ab5c6971d9bd86eb0c87ea4fc9411d663f (diff) | |
download | bcm5719-llvm-78199518c43a04fecf9886fa86202677f6a1525d.tar.gz bcm5719-llvm-78199518c43a04fecf9886fa86202677f6a1525d.zip |
Rename inst_range() to instructions() for consistency. NFC
llvm-svn: 244248
Diffstat (limited to 'llvm/lib/Analysis/MemDepPrinter.cpp')
-rw-r--r-- | llvm/lib/Analysis/MemDepPrinter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/MemDepPrinter.cpp b/llvm/lib/Analysis/MemDepPrinter.cpp index da3b829b6d3..4d7c9b040b5 100644 --- a/llvm/lib/Analysis/MemDepPrinter.cpp +++ b/llvm/lib/Analysis/MemDepPrinter.cpp @@ -96,7 +96,7 @@ bool MemDepPrinter::runOnFunction(Function &F) { // All this code uses non-const interfaces because MemDep is not // const-friendly, though nothing is actually modified. - for (auto &I : inst_range(F)) { + for (auto &I : instructions(F)) { Instruction *Inst = &I; if (!Inst->mayReadFromMemory() && !Inst->mayWriteToMemory()) @@ -135,7 +135,7 @@ bool MemDepPrinter::runOnFunction(Function &F) { } void MemDepPrinter::print(raw_ostream &OS, const Module *M) const { - for (const auto &I : inst_range(*F)) { + for (const auto &I : instructions(*F)) { const Instruction *Inst = &I; DepSetMap::const_iterator DI = Deps.find(Inst); |