mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Right, globals aren't values yet..
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13822 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b18b9d7374
commit
b04cb7daf5
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user