Overriders may want to modify state in it. AMDGPU wants
to, but has to make its members mutable in order to do so.
Besides, EmitBasicBlockEnd is not const, so why should
Start be?
Paths
| Differential D66341
[AsmPrinter] Remove const qualifier from EmitBasicBlockStart. ClosedPublic Authored by ebevhan on Aug 16 2019, 5:09 AM.
Details Summary Overriders may want to modify state in it. AMDGPU wants Besides, EmitBasicBlockEnd is not const, so why should
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Aug 16 2019, 1:01 PM Closed by commit rL369325: [AsmPrinter] Remove const qualifier from EmitBasicBlockStart. (authored by karka). · Explain WhyAug 19 2019, 10:17 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 216057 llvm/trunk/include/llvm/CodeGen/AsmPrinter.h
llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
llvm/trunk/lib/Target/AMDGPU/AMDGPUAsmPrinter.h
llvm/trunk/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
llvm/trunk/lib/Target/NVPTX/NVPTXAsmPrinter.h
llvm/trunk/lib/Target/NVPTX/NVPTXAsmPrinter.cpp
|