mikhail.ramalho added a comment. In D54978#1442493 <https://reviews.llvm.org/D54978#1442493>, @aprantl wrote:
> I'm afraid this broke some bots that build with `LLVM_ENABLE_MODULES=1`. > > For example: > > http://green.lab.llvm.org/green/view/LLDB/job/lldb-cmake/22411/consoleFull#710926295dd1929ea-7054-4089-b7ef-4624c3781fa4 > > Undefined symbols for architecture x86_64: > "llvm::errs()", referenced from: > llvm::SMTExpr::dump() const in > liblldbDebugserverCommon.a(RNBSocket.cpp.o) > llvm::SMTSolver::dump() const in > liblldbDebugserverCommon.a(RNBSocket.cpp.o) > llvm::SMTSort::dump() const in > liblldbDebugserverCommon.a(RNBSocket.cpp.o) > llvm::SMTExpr::dump() const in > liblldbDebugserverCommon.a(SocketAddress.cpp.o) > llvm::SMTSolver::dump() const in > liblldbDebugserverCommon.a(SocketAddress.cpp.o) > llvm::SMTSort::dump() const in > liblldbDebugserverCommon.a(SocketAddress.cpp.o) > > > Long story short: You can't have an LLVM_DUMP_METHOD defined inline inside of > a module. > > One way to fix this would be to move the function body of the various > > LLVM_DUMP_METHOD void dump() const { print(llvm::errs()); } > > > functions into .cpp files. Unfortunately, I was not able to reproduce the bug locally (when I enable modules, clang complains about some `std::shared_ptr<msf::MappedBlockStream>`), however, I just pushed r356994 and I'll keep an eye on the bot. Thanks for the report. Repository: rL LLVM CHANGES SINCE LAST ACTION https://reviews.llvm.org/D54978/new/ https://reviews.llvm.org/D54978 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits