diff options
| author | Peter Collingbourne <peter@pcc.me.uk> | 2018-04-19 20:03:24 +0000 |
|---|---|---|
| committer | Peter Collingbourne <peter@pcc.me.uk> | 2018-04-19 20:03:24 +0000 |
| commit | fa322abee96dc3b1130a4b3218ad36886372276d (patch) | |
| tree | 56abec20c657bc112688b339b7b180fd0e7765e7 /lld/COFF/Chunks.cpp | |
| parent | 317a6ddea7b942cd1298dd4d0c04731d36df9636 (diff) | |
| download | bcm5719-llvm-fa322abee96dc3b1130a4b3218ad36886372276d.tar.gz bcm5719-llvm-fa322abee96dc3b1130a4b3218ad36886372276d.zip | |
COFF: Rename Chunk::getPermissions to getOutputCharacteristics.
In an upcoming change I will need to make a distinction between section
type (code, data, bss) and permissions. The term that I use for both
of these things is "output characteristics".
Differential Revision: https://reviews.llvm.org/D45799
llvm-svn: 330361
Diffstat (limited to 'lld/COFF/Chunks.cpp')
| -rw-r--r-- | lld/COFF/Chunks.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lld/COFF/Chunks.cpp b/lld/COFF/Chunks.cpp index f5dd41e943f..a5d548691f1 100644 --- a/lld/COFF/Chunks.cpp +++ b/lld/COFF/Chunks.cpp @@ -387,7 +387,7 @@ bool SectionChunk::hasData() const { return !(Header->Characteristics & IMAGE_SCN_CNT_UNINITIALIZED_DATA); } -uint32_t SectionChunk::getPermissions() const { +uint32_t SectionChunk::getOutputCharacteristics() const { return Header->Characteristics & PermMask; } @@ -425,7 +425,7 @@ CommonChunk::CommonChunk(const COFFSymbolRef S) : Sym(S) { Alignment = std::min(uint64_t(32), PowerOf2Ceil(Sym.getValue())); } -uint32_t CommonChunk::getPermissions() const { +uint32_t CommonChunk::getOutputCharacteristics() const { return IMAGE_SCN_CNT_UNINITIALIZED_DATA | IMAGE_SCN_MEM_READ | IMAGE_SCN_MEM_WRITE; } @@ -600,7 +600,7 @@ void MergeChunk::finalizeContents() { } } -uint32_t MergeChunk::getPermissions() const { +uint32_t MergeChunk::getOutputCharacteristics() const { return IMAGE_SCN_MEM_READ | IMAGE_SCN_CNT_INITIALIZED_DATA; } |

