aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2008-09-23 23:52:03 +0000
committerDevang Patel <dpatel@apple.com>2008-09-23 23:52:03 +0000
commit5d3ea1615e6a1dbe0ce97ce1fa947eac26a088cb (patch)
tree91399d16f221cab6db12715eb6e52dc27f7e37c8 /lib/VMCore
parent17ca95cf9dfe506c2abd8d10d8bd74523c4fb3a5 (diff)
downloadexternal_llvm-5d3ea1615e6a1dbe0ce97ce1fa947eac26a088cb.zip
external_llvm-5d3ea1615e6a1dbe0ce97ce1fa947eac26a088cb.tar.gz
external_llvm-5d3ea1615e6a1dbe0ce97ce1fa947eac26a088cb.tar.bz2
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')
-rw-r--r--lib/VMCore/AsmWriter.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp
index 6833597..3b9b669 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 {