mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Give CaptureTracker::shouldExplore a base implementation. Most users want to do
the same thing. No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165435 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -23,6 +23,8 @@ using namespace llvm;
|
||||
|
||||
CaptureTracker::~CaptureTracker() {}
|
||||
|
||||
bool CaptureTracker::shouldExplore(Use *U) { return true; }
|
||||
|
||||
namespace {
|
||||
struct SimpleCaptureTracker : public CaptureTracker {
|
||||
explicit SimpleCaptureTracker(bool ReturnCaptures)
|
||||
@@ -30,8 +32,6 @@ namespace {
|
||||
|
||||
void tooManyUses() { Captured = true; }
|
||||
|
||||
bool shouldExplore(Use *U) { return true; }
|
||||
|
||||
bool captured(Use *U) {
|
||||
if (isa<ReturnInst>(U->getUser()) && !ReturnCaptures)
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user