From dd076fe91adccc1123e7354630f12cdc19e9dbad Mon Sep 17 00:00:00 2001 From: "Duncan P. N. Exon Smith" Date: Tue, 6 Oct 2015 18:33:43 +0000 Subject: [PATCH] IR: Use typedefs for getSublistAccess(), NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249439 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/IR/BasicBlock.h | 2 +- include/llvm/IR/Function.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/llvm/IR/BasicBlock.h b/include/llvm/IR/BasicBlock.h index 08e30bdc941..d5a6584ab68 100644 --- a/include/llvm/IR/BasicBlock.h +++ b/include/llvm/IR/BasicBlock.h @@ -253,7 +253,7 @@ public: InstListType &getInstList() { return InstList; } /// \brief Returns a pointer to a member of the instruction list. - static iplist BasicBlock::*getSublistAccess(Instruction*) { + static InstListType BasicBlock::*getSublistAccess(Instruction*) { return &BasicBlock::InstList; } diff --git a/include/llvm/IR/Function.h b/include/llvm/IR/Function.h index 01217861dfd..29799dd7fbe 100644 --- a/include/llvm/IR/Function.h +++ b/include/llvm/IR/Function.h @@ -436,13 +436,13 @@ public: CheckLazyArguments(); return ArgumentList; } - static iplist Function::*getSublistAccess(Argument*) { + static ArgumentListType Function::*getSublistAccess(Argument*) { return &Function::ArgumentList; } const BasicBlockListType &getBasicBlockList() const { return BasicBlocks; } BasicBlockListType &getBasicBlockList() { return BasicBlocks; } - static iplist Function::*getSublistAccess(BasicBlock*) { + static BasicBlockListType Function::*getSublistAccess(BasicBlock*) { return &Function::BasicBlocks; } -- 2.34.1