[weak vtables] Place class definitions into anonymous namespaces to prevent weak...
authorJuergen Ributzka <juergen@apple.com>
Tue, 19 Nov 2013 03:08:35 +0000 (03:08 +0000)
committerJuergen Ributzka <juergen@apple.com>
Tue, 19 Nov 2013 03:08:35 +0000 (03:08 +0000)
commitba0f991a78706068cc2e6a1c4ef4b0d8f7ce748b
tree92f96f6c5615bd64c6f734f1534a7aa29a47c67a
parent36c7806f4eacd676932ba630246f88e0e37b1cd4
[weak vtables] Place class definitions into anonymous namespaces to prevent weak vtables.

This patch places class definitions in implementation files into anonymous
namespaces to prevent weak vtables. This eliminates the need of providing an
out-of-line definition to pin the vtable explicitly to the file.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195092 91177308-0d34-0410-b5e6-96231b3b80d8
14 files changed:
examples/ExceptionDemo/ExceptionDemo.cpp
examples/Kaleidoscope/Chapter2/toy.cpp
examples/Kaleidoscope/Chapter3/toy.cpp
examples/Kaleidoscope/Chapter4/toy.cpp
examples/Kaleidoscope/Chapter5/toy.cpp
examples/Kaleidoscope/Chapter6/toy.cpp
examples/Kaleidoscope/Chapter7/toy.cpp
tools/llvm-stress/llvm-stress.cpp
unittests/ADT/IntrusiveRefCntPtrTest.cpp
unittests/ExecutionEngine/MCJIT/MCJITCAPITest.cpp
unittests/ExecutionEngine/MCJIT/MCJITMultipleModuleTest.cpp
unittests/ExecutionEngine/MCJIT/MCJITTest.cpp
utils/TableGen/CodeGenSchedule.cpp
utils/TableGen/TGValueTypes.cpp