diff options
author | Devang Patel <dpatel@apple.com> | 2008-09-23 23:52:03 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2008-09-23 23:52:03 +0000 |
commit | dd4924c564c7a661b78b604ebf16dfef7aa62b35 (patch) | |
tree | 91399d16f221cab6db12715eb6e52dc27f7e37c8 /lib/VMCore/AsmWriter.cpp | |
parent | 06117b65984487169cfd80c8349baf603d1879d5 (diff) |
Move FN_NOTE_AlwaysInline and other out of ParamAttrs namespace.
Do not check isDeclaration() in hasNote(). It is clients' responsibility.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56524 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/AsmWriter.cpp')
-rw-r--r-- | lib/VMCore/AsmWriter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index 68335974d4..3b9b6690fe 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -1412,12 +1412,12 @@ void AssemblyWriter::printFunction(const Function *F) { } else { bool insideNotes = false; - if (F->hasNote(ParamAttr::FN_NOTE_AlwaysInline)) { + if (F->hasNote(FN_NOTE_AlwaysInline)) { Out << "notes("; insideNotes = true; Out << "inline=always"; } - if (F->hasNote(ParamAttr::FN_NOTE_NoInline)) { + if (F->hasNote(FN_NOTE_NoInline)) { if (insideNotes) Out << ","; else { @@ -1426,7 +1426,7 @@ void AssemblyWriter::printFunction(const Function *F) { } Out << "inline=never"; } - if (F->hasNote(ParamAttr::FN_NOTE_OptimizeForSize)) { + if (F->hasNote(FN_NOTE_OptimizeForSize)) { if (insideNotes) Out << ","; else { |