From 51ea55f0ec6a0a4e827d76db56deecc9515c1890 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 31 Dec 2009 02:15:45 +0000 Subject: [PATCH] metadata can't be a global var initializer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92330 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/AsmWriter.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index db73f14c746..c2ba8a758e2 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -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(I->getInitializer())) - CreateMetadataSlot(N); - } } // Add metadata used by named metadata. -- 2.34.1