1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00

Print function notes.

llvm-svn: 55647
This commit is contained in:
Devang Patel 2008-09-02 20:56:33 +00:00
parent f06ad159e9
commit 4b52a398c3

View 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 {