[llvm-commits] CVS: llvm/tools/analyze/AnalysisWrappers.cpp

LLVM llvm at cs.uiuc.edu
Sat Jul 17 17:44:24 PDT 2004



Changes in directory llvm/tools/analyze:

AnalysisWrappers.cpp updated: 1.12 -> 1.13

---
Log message:

bug 122: http://llvm.cs.uiuc.edu/PR122 :
- Minimize redundant isa<GlobalValue> usage


---
Diffs of the changes:  (+1 -1)

Index: llvm/tools/analyze/AnalysisWrappers.cpp
diff -u llvm/tools/analyze/AnalysisWrappers.cpp:1.12 llvm/tools/analyze/AnalysisWrappers.cpp:1.13
--- llvm/tools/analyze/AnalysisWrappers.cpp:1.12	Sun Jul  4 07:20:55 2004
+++ llvm/tools/analyze/AnalysisWrappers.cpp	Sat Jul 17 19:44:14 2004
@@ -59,7 +59,7 @@
               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;





More information about the llvm-commits mailing list