metadata can't be a global var initializer.
authorChris Lattner <sabre@nondot.org>
Thu, 31 Dec 2009 02:15:45 +0000 (02:15 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 31 Dec 2009 02:15:45 +0000 (02:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92330 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/AsmWriter.cpp

index db73f14c746bb38ba216df4a43dc2579ea13294e..c2ba8a758e2b075c7da81a01c331f27e80232ff6 100644 (file)
@@ -605,10 +605,6 @@ void SlotTracker::processModule() {
          E = TheModule->global_end(); I != E; ++I) {
     if (!I->hasName())
       CreateModuleSlot(I);
-    if (I->hasInitializer()) {
-      if (MDNode *N = dyn_cast<MDNode>(I->getInitializer()))
-        CreateMetadataSlot(N);
-    }
   }
 
   // Add metadata used by named metadata.