diff options
author | Chris Lattner <sabre@nondot.org> | 2004-05-27 06:43:37 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-05-27 06:43:37 +0000 |
commit | b04cb7daf5a9d7b57450b0612e699df49fcb7cbe (patch) | |
tree | ac78afbf742def4ea11dcd0a32e839263e71ac89 /tools | |
parent | b18b9d73740dd9f6f9fd746fb19c463817f8fdf1 (diff) | |
download | external_llvm-b04cb7daf5a9d7b57450b0612e699df49fcb7cbe.zip external_llvm-b04cb7daf5a9d7b57450b0612e699df49fcb7cbe.tar.gz external_llvm-b04cb7daf5a9d7b57450b0612e699df49fcb7cbe.tar.bz2 |
Right, globals aren't values yet..
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13822 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-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 8e6ee22..7a811ce 100644 --- a/tools/analyze/AnalysisWrappers.cpp +++ b/tools/analyze/AnalysisWrappers.cpp @@ -58,7 +58,7 @@ namespace { if (CS.getInstruction()) { for (CallSite::arg_iterator AI = CS.arg_begin(), E = CS.arg_end(); AI != E; ++AI) - if (isa<Constant>(*AI)) { + if (isa<Constant>(*AI) || isa<GlobalValue>(*AI)) { if (!PrintedFn) { std::cerr << "Function '" << I->getName() << "':\n"; PrintedFn = true; diff --git a/tools/opt/AnalysisWrappers.cpp b/tools/opt/AnalysisWrappers.cpp index 8e6ee22..7a811ce 100644 --- a/tools/opt/AnalysisWrappers.cpp +++ b/tools/opt/AnalysisWrappers.cpp @@ -58,7 +58,7 @@ namespace { if (CS.getInstruction()) { for (CallSite::arg_iterator AI = CS.arg_begin(), E = CS.arg_end(); AI != E; ++AI) - if (isa<Constant>(*AI)) { + if (isa<Constant>(*AI) || isa<GlobalValue>(*AI)) { if (!PrintedFn) { std::cerr << "Function '" << I->getName() << "':\n"; PrintedFn = true; |