diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-07-18 00:44:14 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-07-18 00:44:14 +0000 |
commit | 593eb952281138e1877adbfb11b88b6e32fdd732 (patch) | |
tree | 1c3b420cab5d000c0629ce0ccbba65410f4bc0c0 | |
parent | 40cf2f954e7d554872f6eca42c844bc065b02c11 (diff) | |
download | external_llvm-593eb952281138e1877adbfb11b88b6e32fdd732.zip external_llvm-593eb952281138e1877adbfb11b88b6e32fdd732.tar.gz external_llvm-593eb952281138e1877adbfb11b88b6e32fdd732.tar.bz2 |
bug 122:
- Minimize redundant isa<GlobalValue> usage
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14952 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | tools/analyze/AnalysisWrappers.cpp | 2 | ||||
-rw-r--r-- | tools/opt/AnalysisWrappers.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/analyze/AnalysisWrappers.cpp b/tools/analyze/AnalysisWrappers.cpp index f48d5af..7cd0ba0 100644 --- a/tools/analyze/AnalysisWrappers.cpp +++ b/tools/analyze/AnalysisWrappers.cpp @@ -59,7 +59,7 @@ namespace { if (CS.getInstruction()) { for (CallSite::arg_iterator AI = CS.arg_begin(), E = CS.arg_end(); AI != E; ++AI) - if (isa<Constant>(*AI) || isa<GlobalValue>(*AI)) { + if (isa<Constant>(*AI)) { if (!PrintedFn) { std::cerr << "Function '" << I->getName() << "':\n"; PrintedFn = true; diff --git a/tools/opt/AnalysisWrappers.cpp b/tools/opt/AnalysisWrappers.cpp index f48d5af..7cd0ba0 100644 --- a/tools/opt/AnalysisWrappers.cpp +++ b/tools/opt/AnalysisWrappers.cpp @@ -59,7 +59,7 @@ namespace { if (CS.getInstruction()) { for (CallSite::arg_iterator AI = CS.arg_begin(), E = CS.arg_end(); AI != E; ++AI) - if (isa<Constant>(*AI) || isa<GlobalValue>(*AI)) { + if (isa<Constant>(*AI)) { if (!PrintedFn) { std::cerr << "Function '" << I->getName() << "':\n"; PrintedFn = true; |