[llvm-dev] Question about LLVM Building Error with "-DLLVM_ENABLE_DUMP" and "RelWithDebInfo"
jingu@codeplay.com via llvm-dev
llvm-dev at lists.llvm.org
Thu Apr 6 07:38:46 PDT 2017
Hi All,
I have tried to build llvm tip as following:
cmake -DCMAKE_CXX_FLAGS:STRING="-DLLVM_ENABLE_DUMP"
-DCMAKE_BUILD_TYPE=RelWithDebInfo ../llvm
After running 'make', I have got error messages like below.
llvm/lib/CodeGen/MachineRegisterInfo.cpp:462:67: error: no ‘void
llvm::MachineRegisterInfo::dumpUses(unsigned int) const’ member function
declared in class ‘llvm::MachineRegisterInfo’
llvm/lib/CodeGen/MachineScheduler.cpp:2331:57: error: no ‘void
llvm::SchedBoundary::dumpScheduledState()’ member function declared in
class ‘llvm::SchedBoundary’
...
It seems the "defined(LLVM_ENABLE_DUMP)" is needed on several locations.
How do you think about it? I have attached the diff file about the
locations for reference. If I missed something, please let me know.
Thanks,
JinGu Kang
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dump.diff
Type: text/x-patch
Size: 2749 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170406/af650ed2/attachment.bin>
More information about the llvm-dev
mailing list