diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2013-11-26 00:37:23 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2013-11-26 00:37:23 +0000 |
commit | 0c9fcd2be82a9bb547f9b8a9e3be30e5b79ca255 (patch) | |
tree | 5af499ad409fc54cc80a3f17d44125d98d6c71cb /lib | |
parent | 2fdf433e51db56f25587478bb3c6b6c591f64879 (diff) | |
download | llvm-0c9fcd2be82a9bb547f9b8a9e3be30e5b79ca255.tar.gz llvm-0c9fcd2be82a9bb547f9b8a9e3be30e5b79ca255.tar.bz2 llvm-0c9fcd2be82a9bb547f9b8a9e3be30e5b79ca255.tar.xz |
[PM] Rename the 'Mod' member to the more idiomatic 'M'. No functionality
changed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195701 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Analysis/IPA/CallGraph.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Analysis/IPA/CallGraph.cpp b/lib/Analysis/IPA/CallGraph.cpp index f042964c21..d5a718bfbc 100644 --- a/lib/Analysis/IPA/CallGraph.cpp +++ b/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)); } |