mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 20:34:38 +00:00
Ignore debug info intrinsics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65908 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cf42ee42b1
commit
cd11991203
@ -22,7 +22,7 @@
|
|||||||
#include "llvm/Transforms/IPO.h"
|
#include "llvm/Transforms/IPO.h"
|
||||||
#include "llvm/CallGraphSCCPass.h"
|
#include "llvm/CallGraphSCCPass.h"
|
||||||
#include "llvm/GlobalVariable.h"
|
#include "llvm/GlobalVariable.h"
|
||||||
#include "llvm/Instructions.h"
|
#include "llvm/IntrinsicInst.h"
|
||||||
#include "llvm/Analysis/CallGraph.h"
|
#include "llvm/Analysis/CallGraph.h"
|
||||||
#include "llvm/Analysis/CaptureTracking.h"
|
#include "llvm/Analysis/CaptureTracking.h"
|
||||||
#include "llvm/ADT/SmallSet.h"
|
#include "llvm/ADT/SmallSet.h"
|
||||||
@ -137,6 +137,10 @@ bool FunctionAttrs::AddReadAttrs(const std::vector<CallGraphNode *> &SCC) {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Ignore dbg info intrinsics.
|
||||||
|
if (isa<DbgInfoIntrinsic>(I))
|
||||||
|
continue;
|
||||||
|
|
||||||
// Any remaining instructions need to be taken seriously! Check if they
|
// Any remaining instructions need to be taken seriously! Check if they
|
||||||
// read or write memory.
|
// read or write memory.
|
||||||
if (I->mayWriteToMemory())
|
if (I->mayWriteToMemory())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user