diff options
author | Devang Patel <dpatel@apple.com> | 2008-09-26 23:51:19 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2008-09-26 23:51:19 +0000 |
commit | 008cd3ecea2958540d8d8f5370deffb6103c6758 (patch) | |
tree | ee745b3e5a1a68cb4e954c3fdfe482b355be0d8f /lib/VMCore | |
parent | 38ee4100731aacc8b51455c0fd4df7daa0855d73 (diff) | |
download | external_llvm-008cd3ecea2958540d8d8f5370deffb6103c6758.zip external_llvm-008cd3ecea2958540d8d8f5370deffb6103c6758.tar.gz external_llvm-008cd3ecea2958540d8d8f5370deffb6103c6758.tar.bz2 |
Implement function notes as function attributes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56716 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/AsmWriter.cpp | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index e186985..14c8274 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -1413,34 +1413,6 @@ void AssemblyWriter::printFunction(const Function *F) { if (F->isDeclaration()) { Out << "\n"; } else { - - bool insideNotes = false; - if (F->hasNote(Attribute::AlwaysInline)) { - Out << " notes("; - insideNotes = true; - Out << "inline=always"; - } - if (F->hasNote(Attribute::NoInline)) { - if (insideNotes) - Out << ","; - else { - Out << " notes("; - insideNotes = true; - } - Out << "inline=never"; - } - if (F->hasNote(Attribute::OptimizeForSize)) { - if (insideNotes) - Out << ","; - else { - Out << " notes("; - insideNotes = true; - } - Out << "opt_size"; - } - if (insideNotes) - Out << ")"; - Out << " {"; // Output all of its basic blocks... for the function |