summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/AsmWriter.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2008-09-23 22:35:17 +0000
committerDevang Patel <dpatel@apple.com>2008-09-23 22:35:17 +0000
commit82fed6702b13d9d3625295494ead5211c415b3a0 (patch)
treeb835e0e199b7bb45affa61b05832888d28b5bdfc /llvm/lib/VMCore/AsmWriter.cpp
parentba79e1713960a98fb7cd1d321b1b4d92aa01f2ae (diff)
downloadbcm5719-llvm-82fed6702b13d9d3625295494ead5211c415b3a0.tar.gz
bcm5719-llvm-82fed6702b13d9d3625295494ead5211c415b3a0.zip
Use parameter attribute store (soon to be renamed) for
Function Notes also. Function notes are stored at index ~0. llvm-svn: 56511
Diffstat (limited to 'llvm/lib/VMCore/AsmWriter.cpp')
-rw-r--r--llvm/lib/VMCore/AsmWriter.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/VMCore/AsmWriter.cpp b/llvm/lib/VMCore/AsmWriter.cpp
index ab8b59bc275..32c468b4809 100644
--- a/llvm/lib/VMCore/AsmWriter.cpp
+++ b/llvm/lib/VMCore/AsmWriter.cpp
@@ -1412,12 +1412,12 @@ void AssemblyWriter::printFunction(const Function *F) {
} else {
bool insideNotes = false;
- if (F->hasNote(FN_NOTE_AlwaysInline)) {
+ if (F->hasNote(ParamAttr::FN_NOTE_AlwaysInline)) {
Out << "notes(";
insideNotes = true;
Out << "inline=always";
}
- if (F->hasNote(FN_NOTE_NoInline)) {
+ if (F->hasNote(ParamAttr::FN_NOTE_NoInline)) {
if (insideNotes)
Out << ",";
else {
@@ -1426,7 +1426,7 @@ void AssemblyWriter::printFunction(const Function *F) {
}
Out << "inline=never";
}
- if (F->hasNote(FN_NOTE_OptimizeForSize)) {
+ if (F->hasNote(ParamAttr::FN_NOTE_OptimizeForSize)) {
if (insideNotes)
Out << ",";
else {
OpenPOWER on IntegriCloud