[llvm-commits] [lld] r155625 - /lld/trunk/lib/Platforms/Darwin/ExecutableWriter.cpp

Jay Foad jay.foad at gmail.com
Thu Apr 26 00:37:08 PDT 2012


Author: foad
Date: Thu Apr 26 02:37:08 2012
New Revision: 155625

URL: http://llvm.org/viewvc/llvm-project?rev=155625&view=rev
Log:
Fix errors when building with GCC 4.6.1 -std=c++0x, which requires
"friend class Foo;" instead of just friend Foo;".

Modified:
    lld/trunk/lib/Platforms/Darwin/ExecutableWriter.cpp

Modified: lld/trunk/lib/Platforms/Darwin/ExecutableWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Platforms/Darwin/ExecutableWriter.cpp?rev=155625&r1=155624&r2=155625&view=diff
==============================================================================
--- lld/trunk/lib/Platforms/Darwin/ExecutableWriter.cpp (original)
+++ lld/trunk/lib/Platforms/Darwin/ExecutableWriter.cpp Thu Apr 26 02:37:08 2012
@@ -335,8 +335,8 @@
   const std::vector<Chunk*> chunks() { return _chunks; }
 
 private:
-  friend LoadCommandsChunk;
-  friend LazyBindingInfoChunk;
+  friend class LoadCommandsChunk;
+  friend class LazyBindingInfoChunk;
 
   void        createChunks(const lld::File &file);
   void        buildAtomToAddressMap();





More information about the llvm-commits mailing list