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/Function.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/Function.cpp')
-rw-r--r-- | llvm/lib/VMCore/Function.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/VMCore/Function.cpp b/llvm/lib/VMCore/Function.cpp index eeade051ac5..1fa0378da5b 100644 --- a/llvm/lib/VMCore/Function.cpp +++ b/llvm/lib/VMCore/Function.cpp @@ -114,8 +114,8 @@ void Argument::removeAttr(Attributes attr) { // Helper Methods in Function //===----------------------------------------------------------------------===// -LLVMContext* Function::getContext() { - Module* M = getParent(); +LLVMContext* Function::getContext() const { + const Module* M = getParent(); if (M) return &M->getContext(); return 0; } |