[lld] r239707 - COFF: Change const name. NFC.
Rui Ueyama
ruiu at google.com
Sun Jun 14 15:21:29 PDT 2015
Author: ruiu
Date: Sun Jun 14 17:21:29 2015
New Revision: 239707
URL: http://llvm.org/viewvc/llvm-project?rev=239707&view=rev
Log:
COFF: Change const name. NFC.
Modified:
lld/trunk/COFF/Writer.cpp
Modified: lld/trunk/COFF/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/Writer.cpp?rev=239707&r1=239706&r2=239707&view=diff
==============================================================================
--- lld/trunk/COFF/Writer.cpp (original)
+++ lld/trunk/COFF/Writer.cpp Sun Jun 14 17:21:29 2015
@@ -370,14 +370,14 @@ OutputSection *Writer::createSection(Str
const auto CODE = IMAGE_SCN_CNT_CODE;
const auto R = IMAGE_SCN_MEM_READ;
const auto W = IMAGE_SCN_MEM_WRITE;
- const auto E = IMAGE_SCN_MEM_EXECUTE;
+ const auto X = IMAGE_SCN_MEM_EXECUTE;
uint32_t Perms = StringSwitch<uint32_t>(Name)
.Case(".bss", BSS | R | W)
.Case(".data", DATA | R | W)
.Case(".didat", DATA | R)
.Case(".idata", DATA | R)
.Case(".rdata", DATA | R)
- .Case(".text", CODE | R | E)
+ .Case(".text", CODE | R | X)
.Default(0);
if (!Perms)
llvm_unreachable("unknown section name");
More information about the llvm-commits
mailing list