diff options
author | Bill Schmidt <wschmidt@linux.vnet.ibm.com> | 2013-05-13 19:40:36 +0000 |
---|---|---|
committer | Bill Schmidt <wschmidt@linux.vnet.ibm.com> | 2013-05-13 19:40:36 +0000 |
commit | 59b078fc56e64b9b2d13521670648034cd870c0f (patch) | |
tree | 17f5ffbd929e26ab85dbd8282c5297d60b52fc8d /lib/Target | |
parent | 240b9b6078cdf8048945107b4ff7d517729dab96 (diff) | |
download | external_llvm-59b078fc56e64b9b2d13521670648034cd870c0f.zip external_llvm-59b078fc56e64b9b2d13521670648034cd870c0f.tar.gz external_llvm-59b078fc56e64b9b2d13521670648034cd870c0f.tar.bz2 |
Fix goofy commentary in PPCTargetObjectFile.cpp.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181725 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r-- | lib/Target/PowerPC/PPCTargetObjectFile.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/PowerPC/PPCTargetObjectFile.cpp b/lib/Target/PowerPC/PPCTargetObjectFile.cpp index b374b59..90e4f15 100644 --- a/lib/Target/PowerPC/PPCTargetObjectFile.cpp +++ b/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); |