projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0fc781
)
use an accessor instead of poking internals of a node.
author
Chris Lattner
<sabre@nondot.org>
Mon, 31 Aug 2009 02:24:20 +0000
(
02:24
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 31 Aug 2009 02:24:20 +0000
(
02:24
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80532
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Analysis/IPA/CallGraph.cpp
patch
|
blob
|
history
diff --git
a/lib/Analysis/IPA/CallGraph.cpp
b/lib/Analysis/IPA/CallGraph.cpp
index 08687df4b5f34022b2623f69aecbaf767ba91771..152add93efea148f6e1697c5c96307833c0aa6b7 100644
(file)
--- a/
lib/Analysis/IPA/CallGraph.cpp
+++ b/
lib/Analysis/IPA/CallGraph.cpp
@@
-196,7
+196,7
@@
void CallGraph::dump() const {
// is to dropAllReferences before calling this.
//
Function *CallGraph::removeFunctionFromModule(CallGraphNode *CGN) {
- assert(CGN->
CalledFunctions.
empty() && "Cannot remove function from call "
+ assert(CGN->empty() && "Cannot remove function from call "
"graph if it references other functions!");
Function *F = CGN->getFunction(); // Get the function for the call graph node
delete CGN; // Delete the call graph node for this func