aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/PowerPC/PPCTargetObjectFile.cpp
diff options
context:
space:
mode:
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>2013-05-13 19:40:36 +0000
committerBill Schmidt <wschmidt@linux.vnet.ibm.com>2013-05-13 19:40:36 +0000
commit6cda22a3b464de9b166eac715e852fba5767af05 (patch)
tree51bab5037917714e1957b7c5a110e8ab84ed60d7 /llvm/lib/Target/PowerPC/PPCTargetObjectFile.cpp
parent487dd5dde6e35322294bd47b02018546cb9fd4fa (diff)
downloadllvm-6cda22a3b464de9b166eac715e852fba5767af05.zip
llvm-6cda22a3b464de9b166eac715e852fba5767af05.tar.gz
llvm-6cda22a3b464de9b166eac715e852fba5767af05.tar.bz2
Fix goofy commentary in PPCTargetObjectFile.cpp.
llvm-svn: 181725
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCTargetObjectFile.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCTargetObjectFile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCTargetObjectFile.cpp b/llvm/lib/Target/PowerPC/PPCTargetObjectFile.cpp
index b374b59..90e4f15 100644
--- a/llvm/lib/Target/PowerPC/PPCTargetObjectFile.cpp
+++ b/llvm/lib/Target/PowerPC/PPCTargetObjectFile.cpp
@@ -32,7 +32,7 @@ SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind,
if (DefaultSection != ReadOnlySection)
return DefaultSection;
- // Here override isReadOnly() to isReadOnlyWithRel() for PPC64 SVR4 ABI
+ // Here override ReadOnlySection to DataRelROSection for PPC64 SVR4 ABI
// when we have a constant that contains global relocations. This is
// necessary because of this ABI's handling of pointers to functions in
// a shared library. The address of a function is actually the address
@@ -43,7 +43,7 @@ SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind,
// pointers to functions in shared libraries into dynamic relocations,
// because of an ordering problem with initialization of copy relocs and
// PLT entries. The dynamic relocation will be initialized by the dynamic
- // linker, so we must use the DataRelRO section instead of ReadOnlySection.
+ // linker, so we must use DataRelROSection instead of ReadOnlySection.
// For more information, see the description of ELIMINATE_COPY_RELOCS in
// GNU ld.
const GlobalVariable *GVar = dyn_cast<GlobalVariable>(GV);