aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2011-06-07 23:26:45 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2011-06-07 23:26:45 +0000
commitc85e0d81e432f4eb4d8c36318d62f8dd4c4c04a7 (patch)
treebd1286678de3af3a2846d4e40713bdcf0884ebc6 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parent98c01e8c133a182ff62c1844d9e6a8040582b516 (diff)
downloadllvm-c85e0d81e432f4eb4d8c36318d62f8dd4c4c04a7.zip
llvm-c85e0d81e432f4eb4d8c36318d62f8dd4c4c04a7.tar.gz
llvm-c85e0d81e432f4eb4d8c36318d62f8dd4c4c04a7.tar.bz2
Fix a silly error I introduce in r131951.
Fixes PR10095. llvm-svn: 132735
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
-rw-r--r--llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
index 4e2888d..cdac42d 100644
--- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
@@ -255,9 +255,6 @@ getELFKindForNamedSection(StringRef Name, SectionKind K) {
Name.startswith(".llvm.linkonce.tb."))
return SectionKind::getThreadBSS();
- if (Name == ".eh_frame")
- return SectionKind::getReadOnlyWithRel();
-
return K;
}
@@ -290,7 +287,7 @@ getELFSectionFlags(SectionKind K) {
if (K.isText())
Flags |= ELF::SHF_EXECINSTR;
- if (K.isWriteable() && !K.isReadOnlyWithRel())
+ if (K.isWriteable())
Flags |= ELF::SHF_WRITE;
if (K.isThreadLocal())