summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-07-24 04:26:19 +0000
committerChris Lattner <sabre@nondot.org>2009-07-24 04:26:19 +0000
commit68d64a2d906803eca73f3d393761627ddebcf396 (patch)
tree70ac2a77147b5594e191d28062114d728b2054fd /llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
parent37e311a5707c9a67ec2c5ca6e8a5762f1502f055 (diff)
downloadbcm5719-llvm-68d64a2d906803eca73f3d393761627ddebcf396.tar.gz
bcm5719-llvm-68d64a2d906803eca73f3d393761627ddebcf396.zip
document SectionFlags::Named better and make it more easily greppable by
eliminating isNamed. llvm-svn: 76946
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index fe037058116..44d163617e9 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/llvm/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());
OpenPOWER on IntegriCloud