[llvm-commits] [lld] [PATCH] "friend class" fixes

Jay Foad jay.foad at gmail.com
Wed Apr 25 05:53:22 PDT 2012


Hi,

When building lld with gcc (Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1 I get:

[100%] Building CXX object
projects/lld/lib/Platforms/Darwin/CMakeFiles/lldDarwinPlatform.dir/ExecutableWriter.cpp.o
/home/jay/svn/llvm-project/llvm/trunk/projects/lld/lib/Platforms/Darwin/ExecutableWriter.cpp:338:3:
error: a class-key must be used when declaring a friend
/home/jay/svn/llvm-project/llvm/trunk/projects/lld/lib/Platforms/Darwin/ExecutableWriter.cpp:338:3:
error: friend declaration does not name a class or function
/home/jay/svn/llvm-project/llvm/trunk/projects/lld/lib/Platforms/Darwin/ExecutableWriter.cpp:339:3:
error: a class-key must be used when declaring a friend
/home/jay/svn/llvm-project/llvm/trunk/projects/lld/lib/Platforms/Darwin/ExecutableWriter.cpp:339:3:
error: friend declaration does not name a class or function

The attached patch fixes this. OK to commit?

Thanks,
Jay.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lld-friend-class.diff
Type: application/octet-stream
Size: 560 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120425/60c3913d/attachment.obj>


More information about the llvm-commits mailing list