diff options
| author | Sanjoy Das <sanjoy@playingwithpointers.com> | 2015-12-08 00:13:12 +0000 |
|---|---|---|
| committer | Sanjoy Das <sanjoy@playingwithpointers.com> | 2015-12-08 00:13:12 +0000 |
| commit | 411fdcd460312b4b441bda60c138d9877f2d426e (patch) | |
| tree | 7760dd5e4c46256bf52e0d89183c5e6c9064f596 /llvm/lib | |
| parent | 5ae3418ffecc754a72d5b71bf9d5c8bc95cde70a (diff) | |
| download | bcm5719-llvm-411fdcd460312b4b441bda60c138d9877f2d426e.tar.gz bcm5719-llvm-411fdcd460312b4b441bda60c138d9877f2d426e.zip | |
Add Instruction::getFunction; NFC
Will be used in a upcoming patch.
llvm-svn: 254975
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/IR/Instruction.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/IR/Instruction.cpp b/llvm/lib/IR/Instruction.cpp index b5a30a4969b..7bd50328b12 100644 --- a/llvm/lib/IR/Instruction.cpp +++ b/llvm/lib/IR/Instruction.cpp @@ -62,6 +62,11 @@ Module *Instruction::getModule() { return getParent()->getModule(); } +Function *Instruction::getFunction() { return getParent()->getParent(); } + +const Function *Instruction::getFunction() const { + return getParent()->getParent(); +} void Instruction::removeFromParent() { getParent()->getInstList().remove(getIterator()); |

