[PATCH] D48612: [ThinLTO] Print names in function import debug messages when available
David Li via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 26 15:17:12 PDT 2018
davidxl added a comment.
Perhaps define a little helper function:
#ifndef NDEBUG
raw_ostream& operator << (raw_ostream&, ValueInfo&VI) {
if (!VI.empty()) {
....
}
return dbgs();
}
#endif
then this call can be embedded inside dbgs() << getGUID(VI) << VI << "\n";
Repository:
rL LLVM
https://reviews.llvm.org/D48612
More information about the llvm-commits
mailing list