projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Enable loop splitting in RegAllocGreedy.
[oota-llvm.git]
/
lib
/
CodeGen
/
TargetLoweringObjectFileImpl.cpp
diff --git
a/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
b/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
index cb53118ab549da21b0b31e90ce20accdd82477b7..abc01a28776f26124458dc0544b3f3ea9dd33b62 100644
(file)
--- a/
lib/CodeGen/TargetLoweringObjectFileImpl.cpp
+++ b/
lib/CodeGen/TargetLoweringObjectFileImpl.cpp
@@
-135,7
+135,7
@@
void TargetLoweringObjectFileELF::Initialize(MCContext &Ctx,
SectionKind::getReadOnly());
EHFrameSection =
getContext().getELFSection(".eh_frame", MCSectionELF::SHT_PROGBITS,
SectionKind::getReadOnly());
EHFrameSection =
getContext().getELFSection(".eh_frame", MCSectionELF::SHT_PROGBITS,
- MCSectionELF::SHF_ALLOC
|MCSectionELF::SHF_WRITE
,
+ MCSectionELF::SHF_ALLOC,
SectionKind::getDataRel());
// Debug Info Sections.
SectionKind::getDataRel());
// Debug Info Sections.
@@
-262,7
+262,7
@@
getExplicitSectionGlobal(const GlobalValue *GV, SectionKind Kind,
return getContext().getELFSection(SectionName,
getELFSectionType(SectionName, Kind),
return getContext().getELFSection(SectionName,
getELFSectionType(SectionName, Kind),
- getELFSectionFlags(Kind), Kind
, true
);
+ getELFSectionFlags(Kind), Kind);
}
static const char *getSectionPrefixForUniqueGlobal(SectionKind Kind) {
}
static const char *getSectionPrefixForUniqueGlobal(SectionKind Kind) {
@@
-952,6
+952,7
@@
getCOFFSectionFlags(SectionKind K) {
else if (K.isText())
Flags |=
COFF::IMAGE_SCN_MEM_EXECUTE |
else if (K.isText())
Flags |=
COFF::IMAGE_SCN_MEM_EXECUTE |
+ COFF::IMAGE_SCN_MEM_READ |
COFF::IMAGE_SCN_CNT_CODE;
else if (K.isBSS ())
Flags |=
COFF::IMAGE_SCN_CNT_CODE;
else if (K.isBSS ())
Flags |=