aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/VirtualFileSystemTest.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2023-01-18 11:31:29 -0800
committerCraig Topper <craig.topper@sifive.com>2023-01-18 11:31:45 -0800
commit9778802cb0f62d9e8588117b0a444d3d5c874250 (patch)
tree12499618381f184e220dbfd35a0dab0b3001be96 /llvm/unittests/Support/VirtualFileSystemTest.cpp
parent0f4b4e8e4d8b3aafba829143e2fd4237620ea4d7 (diff)
downloadllvm-9778802cb0f62d9e8588117b0a444d3d5c874250.zip
llvm-9778802cb0f62d9e8588117b0a444d3d5c874250.tar.gz
llvm-9778802cb0f62d9e8588117b0a444d3d5c874250.tar.bz2
[RISCV] Make it explicit that attributes use the MCSubtargetInfo from TargetMachine. NFC
The MCSTI variable is initialized to TM.getMCSubtargetInfo(), but is re-assigned in every call to runOnMachineFunction. emitAttributes is called before any call to runOnMachineFunction, but it's not immediately obvious. This patch removes the MCSTI variable, and instead queries TM.getMCSubtargetInfo() at the time emitAttributes is called. Reviewed By: reames Differential Revision: https://reviews.llvm.org/D142037
Diffstat (limited to 'llvm/unittests/Support/VirtualFileSystemTest.cpp')
0 files changed, 0 insertions, 0 deletions