summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-02-05 04:20:12 +0000
committerChris Lattner <sabre@nondot.org>2002-02-05 04:20:12 +0000
commit748697d2421051b3ff1263d13cccaf410f3e7034 (patch)
tree78b10a43c512846fce169c36f72c2a7a4c9bc43f /include
parent3773094a1da7d7fc76a2491211fadf734c3b8645 (diff)
downloadllvm-748697d2421051b3ff1263d13cccaf410f3e7034.tar.gz
llvm-748697d2421051b3ff1263d13cccaf410f3e7034.tar.bz2
llvm-748697d2421051b3ff1263d13cccaf410f3e7034.tar.xz
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
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Analysis/LiveVar/FunctionLiveVarInfo.h8
-rw-r--r--include/llvm/CodeGen/FunctionLiveVarInfo.h8
2 files changed, 8 insertions, 8 deletions
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);
};