[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. llvm-svn: 195092
Showing
- llvm/examples/ExceptionDemo/ExceptionDemo.cpp 3 additions, 5 deletionsllvm/examples/ExceptionDemo/ExceptionDemo.cpp
- llvm/examples/Kaleidoscope/Chapter2/toy.cpp 3 additions, 14 deletionsllvm/examples/Kaleidoscope/Chapter2/toy.cpp
- llvm/examples/Kaleidoscope/Chapter3/toy.cpp 3 additions, 5 deletionsllvm/examples/Kaleidoscope/Chapter3/toy.cpp
- llvm/examples/Kaleidoscope/Chapter4/toy.cpp 3 additions, 5 deletionsllvm/examples/Kaleidoscope/Chapter4/toy.cpp
- llvm/examples/Kaleidoscope/Chapter5/toy.cpp 3 additions, 5 deletionsllvm/examples/Kaleidoscope/Chapter5/toy.cpp
- llvm/examples/Kaleidoscope/Chapter6/toy.cpp 3 additions, 5 deletionsllvm/examples/Kaleidoscope/Chapter6/toy.cpp
- llvm/examples/Kaleidoscope/Chapter7/toy.cpp 3 additions, 5 deletionsllvm/examples/Kaleidoscope/Chapter7/toy.cpp
- llvm/tools/llvm-stress/llvm-stress.cpp 6 additions, 32 deletionsllvm/tools/llvm-stress/llvm-stress.cpp
- llvm/unittests/ADT/IntrusiveRefCntPtrTest.cpp 5 additions, 6 deletionsllvm/unittests/ADT/IntrusiveRefCntPtrTest.cpp
- llvm/unittests/ExecutionEngine/MCJIT/MCJITCAPITest.cpp 10 additions, 11 deletionsllvm/unittests/ExecutionEngine/MCJIT/MCJITCAPITest.cpp
- llvm/unittests/ExecutionEngine/MCJIT/MCJITMultipleModuleTest.cpp 2 additions, 8 deletions...ittests/ExecutionEngine/MCJIT/MCJITMultipleModuleTest.cpp
- llvm/unittests/ExecutionEngine/MCJIT/MCJITTest.cpp 3 additions, 9 deletionsllvm/unittests/ExecutionEngine/MCJIT/MCJITTest.cpp
- llvm/utils/TableGen/CodeGenSchedule.cpp 31 additions, 37 deletionsllvm/utils/TableGen/CodeGenSchedule.cpp
- llvm/utils/TableGen/TGValueTypes.cpp 2 additions, 8 deletionsllvm/utils/TableGen/TGValueTypes.cpp
Loading
Please register or sign in to comment