diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-05 22:41:43 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-05 22:41:43 +0000 |
commit | 0a205a459884ec745df1c529396dd921f029dafd (patch) | |
tree | 905109491ef6c2ea3d99d01fc48af9c2c633e645 /lib/VMCore/BasicBlock.cpp | |
parent | db882950f3bcf7f710843610e917988daeafffc2 (diff) | |
download | external_llvm-0a205a459884ec745df1c529396dd921f029dafd.zip external_llvm-0a205a459884ec745df1c529396dd921f029dafd.tar.gz external_llvm-0a205a459884ec745df1c529396dd921f029dafd.tar.bz2 |
More LLVMContext-ification.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74807 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/BasicBlock.cpp')
-rw-r--r-- | lib/VMCore/BasicBlock.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/VMCore/BasicBlock.cpp b/lib/VMCore/BasicBlock.cpp index 3065766..f39e1ca 100644 --- a/lib/VMCore/BasicBlock.cpp +++ b/lib/VMCore/BasicBlock.cpp @@ -29,6 +29,10 @@ ValueSymbolTable *BasicBlock::getValueSymbolTable() { return 0; } +LLVMContext* BasicBlock::getContext() const { + return Parent ? Parent->getContext() : 0; +} + // Explicit instantiation of SymbolTableListTraits since some of the methods // are not in the public header file... template class SymbolTableListTraits<Instruction, BasicBlock>; |