mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-23 17:24:48 +00:00
Remove dead code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78335 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -563,12 +563,6 @@ namespace llvm {
|
|||||||
std::string &Type, unsigned &LineNo, std::string &File,
|
std::string &Type, unsigned &LineNo, std::string &File,
|
||||||
std::string &Dir);
|
std::string &Dir);
|
||||||
|
|
||||||
/// CollectDebugInfoAnchors - Collect debugging information anchors.
|
|
||||||
void CollectDebugInfoAnchors(Module &M,
|
|
||||||
SmallVector<GlobalVariable *, 2> &CompileUnits,
|
|
||||||
SmallVector<GlobalVariable *, 4> &GlobalVars,
|
|
||||||
SmallVector<GlobalVariable *, 4> &Subprograms);
|
|
||||||
|
|
||||||
/// isValidDebugInfoIntrinsic - Return true if SPI is a valid debug
|
/// isValidDebugInfoIntrinsic - Return true if SPI is a valid debug
|
||||||
/// info intrinsic.
|
/// info intrinsic.
|
||||||
bool isValidDebugInfoIntrinsic(DbgStopPointInst &SPI,
|
bool isValidDebugInfoIntrinsic(DbgStopPointInst &SPI,
|
||||||
|
@ -1197,36 +1197,6 @@ namespace llvm {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// CollectDebugInfoAnchors - Collect debugging information anchors.
|
|
||||||
void CollectDebugInfoAnchors(Module &M,
|
|
||||||
SmallVector<GlobalVariable *, 2> &CUs,
|
|
||||||
SmallVector<GlobalVariable *, 4> &GVs,
|
|
||||||
SmallVector<GlobalVariable *, 4> &SPs) {
|
|
||||||
|
|
||||||
for (Module::global_iterator GVI = M.global_begin(), E = M.global_end();
|
|
||||||
GVI != E; GVI++) {
|
|
||||||
GlobalVariable *GV = GVI;
|
|
||||||
if (GV->hasName() && GV->getName().startswith("llvm.dbg")
|
|
||||||
&& GV->isConstant() && GV->hasInitializer()) {
|
|
||||||
DICompileUnit C(GV);
|
|
||||||
if (C.isNull() == false) {
|
|
||||||
CUs.push_back(GV);
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
DIGlobalVariable G(GV);
|
|
||||||
if (G.isNull() == false) {
|
|
||||||
GVs.push_back(GV);
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
DISubprogram S(GV);
|
|
||||||
if (S.isNull() == false) {
|
|
||||||
SPs.push_back(GV);
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// isValidDebugInfoIntrinsic - Return true if SPI is a valid debug
|
/// isValidDebugInfoIntrinsic - Return true if SPI is a valid debug
|
||||||
/// info intrinsic.
|
/// info intrinsic.
|
||||||
bool isValidDebugInfoIntrinsic(DbgStopPointInst &SPI,
|
bool isValidDebugInfoIntrinsic(DbgStopPointInst &SPI,
|
||||||
|
Reference in New Issue
Block a user