[PATCH] D77386: [Alignment][NFC] Allow to print alignment to raw_ostream
Clement Courbet via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 3 06:25:07 PDT 2020
courbet added a comment.
I'd rather have every user forced to think whether they want to use the value or its internal (log) representation, e.g. `.p2align` vs MIR format. If only for debug, then:
#ifndef NDEBUG
std::string Align::DebugStr() const {
return "Align(" + value + ")";
}
#endif
WDYT ?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D77386/new/
https://reviews.llvm.org/D77386
More information about the llvm-commits
mailing list