diff ir/irclass.cpp @ 1558:3adcb70700cb

Added back option to disable metadata generation and users. Set USE_METADATA to OFF in ccmake.
author Tomas Lindquist Olsen <tomas.l.olsen gmail com>
date Fri, 31 Jul 2009 11:28:31 +0200
parents ed0cffe895ec
children 8912aabdb26e
line wrap: on
line diff
--- a/ir/irclass.cpp	Fri Jul 31 01:44:47 2009 +0200
+++ b/ir/irclass.cpp	Fri Jul 31 11:28:31 2009 +0200
@@ -71,6 +71,7 @@
     classInfo = new llvm::GlobalVariable(
         *gIR->module, tc->getPA().get(), false, _linkage, NULL, initname);
 
+#if USE_METADATA
     // Generate some metadata on this ClassInfo if it's for a class.
     ClassDeclaration* classdecl = aggrdecl->isClassDeclaration();
     if (classdecl && !aggrdecl->isInterfaceDeclaration()) {
@@ -90,6 +91,7 @@
         std::string metaname = CD_PREFIX + initname;
         llvm::NamedMDNode::Create(metaname, &metadata, 1, gIR->module);
     }
+#endif // USE_METADATA
 
     return classInfo;
 }