mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-28 06:58:19 +00:00
Use only 'subset' of flags
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53323 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a3af0bf4ab
commit
7d51edfc08
@ -216,25 +216,17 @@ TargetAsmInfo::SectionFlagsForGlobal(const GlobalValue *GV,
|
|||||||
Flags |= SectionFlags::Code;
|
Flags |= SectionFlags::Code;
|
||||||
break;
|
break;
|
||||||
case SectionKind::ThreadData:
|
case SectionKind::ThreadData:
|
||||||
Flags |= SectionFlags::TLS;
|
|
||||||
// FALLS THROUGH
|
|
||||||
case SectionKind::Data:
|
|
||||||
Flags |= SectionFlags::Writeable;
|
|
||||||
break;
|
|
||||||
case SectionKind::ThreadBSS:
|
case SectionKind::ThreadBSS:
|
||||||
Flags |= SectionFlags::TLS;
|
Flags |= SectionFlags::TLS;
|
||||||
// FALLS THROUGH
|
// FALLS THROUGH
|
||||||
|
case SectionKind::Data:
|
||||||
case SectionKind::BSS:
|
case SectionKind::BSS:
|
||||||
Flags |= SectionFlags::BSS;
|
Flags |= SectionFlags::Writeable;
|
||||||
break;
|
break;
|
||||||
case SectionKind::ROData:
|
case SectionKind::ROData:
|
||||||
// No additional flags here
|
|
||||||
break;
|
|
||||||
case SectionKind::RODataMergeStr:
|
case SectionKind::RODataMergeStr:
|
||||||
Flags |= SectionFlags::Strings;
|
|
||||||
// FALLS THROUGH
|
|
||||||
case SectionKind::RODataMergeConst:
|
case SectionKind::RODataMergeConst:
|
||||||
Flags |= SectionFlags::Mergeable;
|
// No additional flags here
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
assert(0 && "Unexpected section kind!");
|
assert(0 && "Unexpected section kind!");
|
||||||
|
Loading…
Reference in New Issue
Block a user