aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Target
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
commit978228189102b8c1d4f316bff684748f17a69320 (patch)
tree46deef526c11f6921405183f655853cb2cfff3d2 /include/llvm/Target
parent26ce54cbdf3d26f56a388eaaaab77238f77cc474 (diff)
downloadexternal_llvm-978228189102b8c1d4f316bff684748f17a69320.zip
external_llvm-978228189102b8c1d4f316bff684748f17a69320.tar.gz
external_llvm-978228189102b8c1d4f316bff684748f17a69320.tar.bz2
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 'include/llvm/Target')
-rw-r--r--include/llvm/Target/TargetAsmInfo.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/llvm/Target/TargetAsmInfo.h b/include/llvm/Target/TargetAsmInfo.h
index cd0fcf8..112f105 100644
--- a/include/llvm/Target/TargetAsmInfo.h
+++ b/include/llvm/Target/TargetAsmInfo.h
@@ -79,6 +79,9 @@ namespace llvm {
const unsigned Linkonce = 1 << 7; ///< Section is linkonce
const unsigned TypeFlags = 0xFF;
// Some gap for future flags
+
+ /// Named - True if this section should be printed with ".section <name>",
+ /// false if the section name is something like ".const".
const unsigned Named = 1 << 23; ///< Section is named
const unsigned EntitySize = 0xFF << 24; ///< Entity size for mergeable stuff
@@ -114,14 +117,13 @@ namespace llvm {
std::string Name;
unsigned Flags;
- explicit Section(unsigned F = SectionFlags::Invalid):Flags(F) { }
+ explicit Section(unsigned F = SectionFlags::Invalid) : Flags(F) { }
public:
- bool isNamed() const { return Flags & SectionFlags::Named; }
unsigned getEntitySize() const { return (Flags >> 24) & 0xFF; }
- const std::string& getName() const { return Name; }
+ const std::string &getName() const { return Name; }
unsigned getFlags() const { return Flags; }
bool hasFlag(unsigned F) const { return (Flags & F) != 0; }