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 | 2c9c3e73682749016d5885b67ff719f634b37d58 (patch) | |
tree | ee745b3e5a1a68cb4e954c3fdfe482b355be0d8f /lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp | |
parent | e7261863c56240a55c6f57062f0e1e028dc27dba (diff) | |
download | external_llvm-2c9c3e73682749016d5885b67ff719f634b37d58.zip external_llvm-2c9c3e73682749016d5885b67ff719f634b37d58.tar.gz external_llvm-2c9c3e73682749016d5885b67ff719f634b37d58.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/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp')
-rw-r--r-- | lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp b/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp index eb66a4f..6e596b4 100644 --- a/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp +++ b/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp @@ -154,7 +154,7 @@ void X86ATTAsmPrinter::emitFunctionHeader(const MachineFunction &MF) { SwitchToSection(TAI->SectionForGlobal(F)); unsigned FnAlign = OptimizeForSize ? 1 : 4; - if (!F->isDeclaration() && F->hasNote(Attribute::OptimizeForSize)) + if (!F->isDeclaration() && F->hasFnAttr(Attribute::OptimizeForSize)) FnAlign = 1; switch (F->getLinkage()) { default: assert(0 && "Unknown linkage type!"); |