Remove dead code.
authorDevang Patel <dpatel@apple.com>
Thu, 6 Aug 2009 20:57:44 +0000 (20:57 +0000)
committerDevang Patel <dpatel@apple.com>
Thu, 6 Aug 2009 20:57:44 +0000 (20:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78335 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/DebugInfo.h
lib/Analysis/DebugInfo.cpp

index 0fc967a40c2047b20c5ca8063b6182fdd3863d33..a9b21b9ed1bc54e8ab829fd458a4ba9906510040 100644 (file)
@@ -563,12 +563,6 @@ namespace llvm {
                        std::string &Type, unsigned &LineNo, std::string &File,
                        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 
   /// info intrinsic.
   bool isValidDebugInfoIntrinsic(DbgStopPointInst &SPI, 
index 64fdfb8f85107aae3e79c5330190a120cc8ad222..b061827c32a6a4003069af9a0534e3d1a1c665ba 100644 (file)
@@ -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,