<div dir="ltr">None of these were removed.<div>lib/IR/AsmWriter.cpp:void Module::dump() const {<br><div>lib/IR/AsmWriter.cpp:void Value::dump() const { print(dbgs(), /*IsForDebug=*/true); dbgs() << '\n'; }<br></div><div>lib/IR/AsmWriter.cpp:void Type::dump() const { print(dbgs(), /*IsForDebug=*/true); dbgs() << '\n'; }<br></div></div><div><br></div><div><span style="font-size:12.8px">>It also seems strange that dump() implementation was removed - surely</span><br style="font-size:12.8px"><span style="font-size:12.8px">>it would have been better ti stub it so that client code does not</span><br style="font-size:12.8px"><span style="font-size:12.8px">>break?</span><br style="font-size:12.8px"></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">LLVM explicitly does not guarantee API compatibility.</span></div><div><span style="font-size:12.8px"><br></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 25, 2017 at 11:40 AM, Dibyendu Majumdar via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I am finding that my project that previously successfully built with<br>
versions 3.5 to 4.0 is now failing to link because of missing<br>
implementation for dump(). Errors I get are:<br>
<br>
Undefined symbols for architecture x86_64:<br>
<br>
"llvm::Type::dump() const", referenced from:<br>
ravi::LuaLLVMTypes::dump() in ravi_llvmtypes.cpp.o<br>
dump_content(lua_State*) in ravi_llvmluaapi.cpp.o<br>
"llvm::Value::dump() const", referenced from:<br>
dump_content(lua_State*) in ravi_llvmluaapi.cpp.o<br>
"llvm::Module::dump() const", referenced from:<br>
<br>
This appears to be a change that is not documented in the release<br>
notes of 5.0. Please can someone describe what the change is and how I<br>
can detect whether the dump() implementation is available or not?<br>
<br>
It also seems strange that dump() implementation was removed - surely<br>
it would have been better ti stub it so that client code does not<br>
break?<br>
<br>
Regards<br>
Dibyendu<br>
______________________________<wbr>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br>
</blockquote></div><br></div>