diff options
author | Devang Patel <dpatel@apple.com> | 2009-08-06 20:57:44 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-08-06 20:57:44 +0000 |
commit | c0422b7b5af6e2401c8c1dac96749bf47e1c3de3 (patch) | |
tree | 305095c0bcb0431c0369e4629386d572a45167ff /llvm/lib/Analysis/DebugInfo.cpp | |
parent | cd4688905feab0270ae0d0b28354ccb44b0eb2e4 (diff) | |
download | bcm5719-llvm-c0422b7b5af6e2401c8c1dac96749bf47e1c3de3.tar.gz bcm5719-llvm-c0422b7b5af6e2401c8c1dac96749bf47e1c3de3.zip |
Remove dead code.
llvm-svn: 78335
Diffstat (limited to 'llvm/lib/Analysis/DebugInfo.cpp')
-rw-r--r-- | llvm/lib/Analysis/DebugInfo.cpp | 32 |
1 files changed, 1 insertions, 31 deletions
diff --git a/llvm/lib/Analysis/DebugInfo.cpp b/llvm/lib/Analysis/DebugInfo.cpp index 64fdfb8f851..b061827c32a 100644 --- a/llvm/lib/Analysis/DebugInfo.cpp +++ b/llvm/lib/Analysis/DebugInfo.cpp @@ -528,7 +528,7 @@ DIArray DIFactory::GetOrCreateArray(DIDescriptor *Tys, unsigned NumTys) { // If we already have this array, just return the uniqued version. DIDescriptor &Entry = SimpleConstantCache[Init]; if (!Entry.isNull()) return DIArray(Entry.getGV()); - + GlobalVariable *GV = new GlobalVariable(M, Init->getType(), true, GlobalValue::InternalLinkage, Init, "llvm.dbg.array"); @@ -1197,36 +1197,6 @@ namespace llvm { 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 /// info intrinsic. bool isValidDebugInfoIntrinsic(DbgStopPointInst &SPI, |