Adding a collector name attribute to Function in the IR. These
[oota-llvm.git] / lib / VMCore / AsmWriter.cpp
index ef8161b03348422ef72c6b6177b8e0a11542574b..008c1daee192b91d53d246ec4eb81d146289872b 100644 (file)
@@ -1112,6 +1112,8 @@ void AssemblyWriter::printFunction(const Function *F) {
     Out << " section \"" << F->getSection() << '"';
   if (F->getAlignment())
     Out << " align " << F->getAlignment();
+  if (F->hasCollector())
+    Out << " gc \"" << F->getCollector() << '"';
 
   if (F->isDeclaration()) {
     Out << "\n";