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 | e70b637033a74963187ad115795e9c575baaa415 (patch) | |
tree | a1e2bd702fdfabdde98c47dced231fece7ccdb31 /llvm/lib/VMCore/BasicBlock.cpp | |
parent | d687b0380c145ad5ec6b8205e92c41e5d914e26a (diff) | |
download | bcm5719-llvm-e70b637033a74963187ad115795e9c575baaa415.tar.gz bcm5719-llvm-e70b637033a74963187ad115795e9c575baaa415.zip |
More LLVMContext-ification.
llvm-svn: 74807
Diffstat (limited to 'llvm/lib/VMCore/BasicBlock.cpp')
-rw-r--r-- | llvm/lib/VMCore/BasicBlock.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/VMCore/BasicBlock.cpp b/llvm/lib/VMCore/BasicBlock.cpp index 3065766362e..f39e1caa10c 100644 --- a/llvm/lib/VMCore/BasicBlock.cpp +++ b/llvm/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>; |