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/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp | |
parent | 06117b65984487169cfd80c8349baf603d1879d5 (diff) | |
download | external_llvm-dd4924c564c7a661b78b604ebf16dfef7aa62b35.zip external_llvm-dd4924c564c7a661b78b604ebf16dfef7aa62b35.tar.gz external_llvm-dd4924c564c7a661b78b604ebf16dfef7aa62b35.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/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 a783bd2..2c9975e 100644 --- a/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp +++ b/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp @@ -160,7 +160,7 @@ void X86ATTAsmPrinter::emitFunctionHeader(const MachineFunction &MF) { SwitchToTextSection(SectionName.c_str()); unsigned FnAlign = OptimizeForSize ? 1 : 4; - if (F->hasNote(ParamAttr::FN_NOTE_OptimizeForSize)) + if (!F->isDeclaration() && F->hasNote(FN_NOTE_OptimizeForSize)) FnAlign = 1; switch (F->getLinkage()) { default: assert(0 && "Unknown linkage type!"); |