[llvm] r181725 - Fix goofy commentary in PPCTargetObjectFile.cpp.

Bill Schmidt wschmidt at linux.vnet.ibm.com
Mon May 13 12:40:36 PDT 2013


Author: wschmidt
Date: Mon May 13 14:40:36 2013
New Revision: 181725

URL: http://llvm.org/viewvc/llvm-project?rev=181725&view=rev
Log:
Fix goofy commentary in PPCTargetObjectFile.cpp.

Modified:
    llvm/trunk/lib/Target/PowerPC/PPCTargetObjectFile.cpp

Modified: llvm/trunk/lib/Target/PowerPC/PPCTargetObjectFile.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCTargetObjectFile.cpp?rev=181725&r1=181724&r2=181725&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCTargetObjectFile.cpp (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCTargetObjectFile.cpp Mon May 13 14:40:36 2013
@@ -32,7 +32,7 @@ SelectSectionForGlobal(const GlobalValue
   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
   // 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);





More information about the llvm-commits mailing list