summaryrefslogtreecommitdiff
path: root/lib/VMCore
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
commit94bdae14ba6672f5afb15310424efeba21a01c77 (patch)
tree71e44755f8e674abd8a9a3add5c2dbebcca4cfe4 /lib/VMCore
parentd49808184f1b01339921f3fa22077f0fabce407c (diff)
downloadllvm-94bdae14ba6672f5afb15310424efeba21a01c77.tar.gz
llvm-94bdae14ba6672f5afb15310424efeba21a01c77.tar.bz2
llvm-94bdae14ba6672f5afb15310424efeba21a01c77.tar.xz
Print function notes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55647 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r--lib/VMCore/AsmWriter.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp
index 80ecea3d6a..05c37a4865 100644
--- a/lib/VMCore/AsmWriter.cpp
+++ b/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 {