[llvm-commits] [llvm] r55647 - /llvm/trunk/lib/VMCore/AsmWriter.cpp
Devang Patel
dpatel at apple.com
Tue Sep 2 13:56:33 PDT 2008
Author: dpatel
Date: Tue Sep 2 15:56:33 2008
New Revision: 55647
URL: http://llvm.org/viewvc/llvm-project?rev=55647&view=rev
Log:
Print function notes.
Modified:
llvm/trunk/lib/VMCore/AsmWriter.cpp
Modified: llvm/trunk/lib/VMCore/AsmWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/AsmWriter.cpp?rev=55647&r1=55646&r2=55647&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/AsmWriter.cpp (original)
+++ llvm/trunk/lib/VMCore/AsmWriter.cpp Tue Sep 2 15:56:33 2008
@@ -1395,7 +1395,15 @@
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 {
More information about the llvm-commits
mailing list