summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/Function.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-05 22:41:43 +0000
committerOwen Anderson <resistor@mac.com>2009-07-05 22:41:43 +0000
commite70b637033a74963187ad115795e9c575baaa415 (patch)
treea1e2bd702fdfabdde98c47dced231fece7ccdb31 /llvm/lib/VMCore/Function.cpp
parentd687b0380c145ad5ec6b8205e92c41e5d914e26a (diff)
downloadbcm5719-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.cpp4
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;
}
OpenPOWER on IntegriCloud