summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-01 21:49:24 +0000
committerChris Lattner <sabre@nondot.org>2009-08-01 21:49:24 +0000
commit286326ed24d5f480f02a980543da425eb36b5e89 (patch)
tree928cdca172871aacb19203491393f6e6ee703a32 /llvm/lib
parentbc3d5f5db058ed9c186fcd623ff3e5d1b6b3b9ff (diff)
downloadbcm5719-llvm-286326ed24d5f480f02a980543da425eb36b5e89.tar.gz
bcm5719-llvm-286326ed24d5f480f02a980543da425eb36b5e89.zip
coff also doesn't have a ReadOnlySection yet, (!)
llvm-svn: 77814
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/TargetLoweringObjectFile.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/Target/TargetLoweringObjectFile.cpp b/llvm/lib/Target/TargetLoweringObjectFile.cpp
index 089143a024c..a26bec2bdf7 100644
--- a/llvm/lib/Target/TargetLoweringObjectFile.cpp
+++ b/llvm/lib/Target/TargetLoweringObjectFile.cpp
@@ -675,9 +675,6 @@ SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind,
if (Kind.isText())
return getTextSection();
- if (Kind.isReadOnly() && ReadOnlySection != 0)
- return ReadOnlySection;
-
return getDataSection();
}
OpenPOWER on IntegriCloud