summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/VMCore/AsmWriter.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/AsmWriter.cpp b/llvm/lib/VMCore/AsmWriter.cpp
index 80ecea3d6a9..05c37a48656 100644
--- a/llvm/lib/VMCore/AsmWriter.cpp
+++ b/llvm/lib/VMCore/AsmWriter.cpp
@@ -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 {
OpenPOWER on IntegriCloud