1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

Right, globals aren't values yet..

llvm-svn: 13822
This commit is contained in:
Chris Lattner 2004-05-27 06:43:37 +00:00
parent e91dc2545c
commit 2236327da5

View File

@ -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;