From 748697d2421051b3ff1263d13cccaf410f3e7034 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 5 Feb 2002 04:20:12 +0000 Subject: Minor change: Methods that return ValueSet's that are guaranteed to be valid return references instead of pointers. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1719 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Analysis/LiveVar/FunctionLiveVarInfo.h | 8 ++++---- include/llvm/CodeGen/FunctionLiveVarInfo.h | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'include') diff --git a/include/llvm/Analysis/LiveVar/FunctionLiveVarInfo.h b/include/llvm/Analysis/LiveVar/FunctionLiveVarInfo.h index 07cf225b2c..d107350dab 100644 --- a/include/llvm/Analysis/LiveVar/FunctionLiveVarInfo.h +++ b/include/llvm/Analysis/LiveVar/FunctionLiveVarInfo.h @@ -119,17 +119,17 @@ public: // --------- Functions to access analysis results ------------------- // gets OutSet of a BB - const ValueSet *getOutSetOfBB(const BasicBlock *BB) const; + const ValueSet &getOutSetOfBB(const BasicBlock *BB) const; // gets InSet of a BB - const ValueSet *getInSetOfBB(const BasicBlock *BB) const; + const ValueSet &getInSetOfBB(const BasicBlock *BB) const; // gets the Live var set BEFORE an instruction - const ValueSet *getLiveVarSetBeforeMInst(const MachineInstr *MI, + const ValueSet &getLiveVarSetBeforeMInst(const MachineInstr *MI, const BasicBlock *BB); // gets the Live var set AFTER an instruction - const ValueSet *getLiveVarSetAfterMInst(const MachineInstr *MI, + const ValueSet &getLiveVarSetAfterMInst(const MachineInstr *MI, const BasicBlock *BB); }; diff --git a/include/llvm/CodeGen/FunctionLiveVarInfo.h b/include/llvm/CodeGen/FunctionLiveVarInfo.h index 07cf225b2c..d107350dab 100644 --- a/include/llvm/CodeGen/FunctionLiveVarInfo.h +++ b/include/llvm/CodeGen/FunctionLiveVarInfo.h @@ -119,17 +119,17 @@ public: // --------- Functions to access analysis results ------------------- // gets OutSet of a BB - const ValueSet *getOutSetOfBB(const BasicBlock *BB) const; + const ValueSet &getOutSetOfBB(const BasicBlock *BB) const; // gets InSet of a BB - const ValueSet *getInSetOfBB(const BasicBlock *BB) const; + const ValueSet &getInSetOfBB(const BasicBlock *BB) const; // gets the Live var set BEFORE an instruction - const ValueSet *getLiveVarSetBeforeMInst(const MachineInstr *MI, + const ValueSet &getLiveVarSetBeforeMInst(const MachineInstr *MI, const BasicBlock *BB); // gets the Live var set AFTER an instruction - const ValueSet *getLiveVarSetAfterMInst(const MachineInstr *MI, + const ValueSet &getLiveVarSetAfterMInst(const MachineInstr *MI, const BasicBlock *BB); }; -- cgit v1.2.3