Print function notes.
authorDevang Patel <dpatel@apple.com>
Tue, 2 Sep 2008 20:56:33 +0000 (20:56 +0000)
committerDevang Patel <dpatel@apple.com>
Tue, 2 Sep 2008 20:56:33 +0000 (20:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55647 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/AsmWriter.cpp

index 80ecea3d6a9ce8a0bfdba3594c50367ecab5a125..05c37a48656edec45e811d5ac0b27250cdce2fe2 100644 (file)
@@ -1395,7 +1395,15 @@ void AssemblyWriter::printFunction(const Function *F) {
     Out << " align " << F->getAlignment();
   if (F->hasGC())
     Out << " gc \"" << F->getGC() << '"';
-
+  FunctionNotes FNotes = F->getNotes();
+  if (FNotes != FP_None) {
+    Out << " notes(";
+    if (FNotes && FP_AlwaysInline)
+      Out << "inline=always";
+    else if (FNotes && FP_NoInline)
+      Out << "inline=never";
+    Out << ")";
+  }
   if (F->isDeclaration()) {
     Out << "\n";
   } else {