diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-07-24 04:26:19 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-07-24 04:26:19 +0000 |
| commit | 837f3323729f91be2d62b4074fedafd7fb1ce451 (patch) | |
| tree | 46deef526c11f6921405183f655853cb2cfff3d2 /lib/CodeGen/AsmPrinter/AsmPrinter.cpp | |
| parent | 686177dae7e86dc8674f2178a3c0cedb96c64c19 (diff) | |
document SectionFlags::Named better and make it more easily greppable by
eliminating isNamed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76946 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
| -rw-r--r-- | lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index fe03705811..44d163617e 100644 --- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -135,7 +135,7 @@ void AsmPrinter::SwitchToSection(const Section* NS) { // If section is named we need to switch into it via special '.section' // directive and also append funky flags. Otherwise - section name is just // some magic assembler directive. - if (NS->isNamed()) + if (NS->hasFlag(SectionFlags::Named)) O << TAI->getSwitchToSectionDirective() << CurrentSection << TAI->getSectionFlags(NS->getFlags()); |
