summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2008-09-02 20:56:33 +0000
committerDevang Patel <dpatel@apple.com>2008-09-02 20:56:33 +0000
commit600879c8e8c69379ba4335e6e7e6ff2bb17111f0 (patch)
tree4fe94664d2af5990275f0dfa36d9b6b19d114751 /llvm/lib
parentc57b7a0fc863feba86ce4ea00f350bafa3054618 (diff)
downloadbcm5719-llvm-600879c8e8c69379ba4335e6e7e6ff2bb17111f0.tar.gz
bcm5719-llvm-600879c8e8c69379ba4335e6e7e6ff2bb17111f0.zip
Print function notes.
llvm-svn: 55647
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