mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-17 04:24:00 +00:00
Move some warnings to debug mode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30933 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -544,6 +544,9 @@ void GraphBuilder::visitCallSite(CallSite CS) {
|
||||
mergeWith(getValueDest(**(CS.arg_begin())));
|
||||
return;
|
||||
case Intrinsic::vaend:
|
||||
case Intrinsic::dbg_func_start:
|
||||
case Intrinsic::dbg_region_end:
|
||||
case Intrinsic::dbg_stoppoint:
|
||||
return; // noop
|
||||
case Intrinsic::memcpy_i32:
|
||||
case Intrinsic::memcpy_i64:
|
||||
@ -1028,9 +1031,10 @@ void GraphBuilder::visitCallSite(CallSite CS) {
|
||||
Warn = true;
|
||||
break;
|
||||
}
|
||||
if (Warn)
|
||||
std::cerr << "WARNING: Call to unknown external function '"
|
||||
<< F->getName() << "' will cause pessimistic results!\n";
|
||||
if (Warn) {
|
||||
DEBUG(std::cerr << "WARNING: Call to unknown external function '"
|
||||
<< F->getName() << "' will cause pessimistic results!\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user