diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2008-07-09 13:29:44 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2008-07-09 13:29:44 +0000 |
commit | 7d51edfc0897693bff4c7894285c8ec5804e7fa2 (patch) | |
tree | afcf4738c5956575941343e49b6b7db9b82f4637 | |
parent | a3af0bf4ab32b59ed7d84d1379eed0d3ae9e4e18 (diff) |
Use only 'subset' of flags
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53323 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/TargetAsmInfo.cpp | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/lib/Target/TargetAsmInfo.cpp b/lib/Target/TargetAsmInfo.cpp index 3c58244a3f..237b96de1a 100644 --- a/lib/Target/TargetAsmInfo.cpp +++ b/lib/Target/TargetAsmInfo.cpp @@ -216,25 +216,17 @@ TargetAsmInfo::SectionFlagsForGlobal(const GlobalValue *GV, Flags |= SectionFlags::Code; break; case SectionKind::ThreadData: - Flags |= SectionFlags::TLS; - // FALLS THROUGH - case SectionKind::Data: - Flags |= SectionFlags::Writeable; - break; case SectionKind::ThreadBSS: Flags |= SectionFlags::TLS; // FALLS THROUGH + case SectionKind::Data: case SectionKind::BSS: - Flags |= SectionFlags::BSS; + Flags |= SectionFlags::Writeable; break; case SectionKind::ROData: - // No additional flags here - break; case SectionKind::RODataMergeStr: - Flags |= SectionFlags::Strings; - // FALLS THROUGH case SectionKind::RODataMergeConst: - Flags |= SectionFlags::Mergeable; + // No additional flags here break; default: assert(0 && "Unexpected section kind!"); |