mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-14 14:24:05 +00:00
Print the address space of a MachineMemOperand
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197288 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -481,6 +481,10 @@ raw_ostream &llvm::operator<<(raw_ostream &OS, const MachineMemOperand &MMO) {
|
||||
else
|
||||
WriteAsOperand(OS, MMO.getValue(), /*PrintType=*/false);
|
||||
|
||||
unsigned AS = MMO.getAddrSpace();
|
||||
if (AS != 0)
|
||||
OS << "(addrspace=" << AS << ')';
|
||||
|
||||
// If the alignment of the memory reference itself differs from the alignment
|
||||
// of the base pointer, print the base alignment explicitly, next to the base
|
||||
// pointer.
|
||||
|
Reference in New Issue
Block a user