summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/IPA/CallGraph.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2013-11-26 00:37:23 +0000
committerChandler Carruth <chandlerc@gmail.com>2013-11-26 00:37:23 +0000
commit9a398f453ddc825c87cd22de8a711758957dc703 (patch)
tree7bff6fa5d99ebe5aceb323e88386b62e69ca1b1e /llvm/lib/Analysis/IPA/CallGraph.cpp
parentfbd29eb3b6042faadef92888bacb40fb1fa9b9e3 (diff)
downloadbcm5719-llvm-9a398f453ddc825c87cd22de8a711758957dc703.tar.gz
bcm5719-llvm-9a398f453ddc825c87cd22de8a711758957dc703.zip
[PM] Rename the 'Mod' member to the more idiomatic 'M'. No functionality
changed. llvm-svn: 195701
Diffstat (limited to 'llvm/lib/Analysis/IPA/CallGraph.cpp')
-rw-r--r--llvm/lib/Analysis/IPA/CallGraph.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Analysis/IPA/CallGraph.cpp b/llvm/lib/Analysis/IPA/CallGraph.cpp
index f042964c21d..d5a718bfbc8 100644
--- a/llvm/lib/Analysis/IPA/CallGraph.cpp
+++ b/llvm/lib/Analysis/IPA/CallGraph.cpp
@@ -67,7 +67,7 @@ void CallGraph::getAnalysisUsage(AnalysisUsage &AU) const {
}
bool CallGraph::runOnModule(Module &M) {
- Mod = &M;
+ this->M = &M;
ExternalCallingNode = getOrInsertFunction(0);
assert(!CallsExternalNode);
@@ -148,7 +148,7 @@ Function *CallGraph::removeFunctionFromModule(CallGraphNode *CGN) {
delete CGN; // Delete the call graph node for this func
FunctionMap.erase(F); // Remove the call graph node from the map
- Mod->getFunctionList().remove(F);
+ M->getFunctionList().remove(F);
return F;
}
@@ -174,7 +174,7 @@ CallGraphNode *CallGraph::getOrInsertFunction(const Function *F) {
CallGraphNode *&CGN = FunctionMap[F];
if (CGN) return CGN;
- assert((!F || F->getParent() == Mod) && "Function not in current module!");
+ assert((!F || F->getParent() == M) && "Function not in current module!");
return CGN = new CallGraphNode(const_cast<Function*>(F));
}
OpenPOWER on IntegriCloud