diff options
author | Chris Lattner <sabre@nondot.org> | 2002-07-19 18:11:43 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-07-19 18:11:43 +0000 |
commit | 9eee58d0baf29f6a754842909085265e1794be13 (patch) | |
tree | 4eaf35b9475238f46aa1143f94295ccb81718600 /lib/Analysis/DataStructure/BottomUpClosure.cpp | |
parent | 1eeefa268d09acd1b3b37783775085d5e9b37575 (diff) |
Ignore some common varargs functions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2973 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DataStructure/BottomUpClosure.cpp')
-rw-r--r-- | lib/Analysis/DataStructure/BottomUpClosure.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Analysis/DataStructure/BottomUpClosure.cpp b/lib/Analysis/DataStructure/BottomUpClosure.cpp index 841dd50f43..d2e8c21519 100644 --- a/lib/Analysis/DataStructure/BottomUpClosure.cpp +++ b/lib/Analysis/DataStructure/BottomUpClosure.cpp @@ -168,6 +168,12 @@ DSGraph &BUDataStructures::calculateGraph(Function &F) { // Erase the entry in the globals vector Globals.erase(Globals.begin()+g--); + } else if (FI.getName() == "printf" || FI.getName() == "sscanf" || + FI.getName() == "fprintf" || FI.getName() == "open" || + FI.getName() == "sprintf") { + + // Erase the entry in the globals vector + Globals.erase(Globals.begin()+g--); } } |