aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2020-11-01 10:31:59 -0800
committerCraig Topper <craig.topper@sifive.com>2020-11-01 10:35:37 -0800
commite57237f19875fcb2977b15689b7eefec2dbcc828 (patch)
tree3adf74baa96eab688086bb492985e27338bb3c67 /clang/lib/CodeGen/CodeGenModule.cpp
parenta76cd10fcda53160dd213157740b2efb31e73e8d (diff)
downloadllvm-e57237f19875fcb2977b15689b7eefec2dbcc828.zip
llvm-e57237f19875fcb2977b15689b7eefec2dbcc828.tar.gz
llvm-e57237f19875fcb2977b15689b7eefec2dbcc828.tar.bz2
Recommit "[RISCV] Remove include of RISCVRegisterInfo.h from RISCVBaseInfo.h. NFCI"
This reverts 781917254dba17df7fb357a5f621ada2ac1b36e3 and recommits 781917254dba17df7fb357a5f621ada2ac1b36e3. I've changed getRegForInlineAsmConstraint to not use a std::pair of Register in a previous commit. Hopefully that fixes the reported issue with expensive checks on Windows. I'm still not sure exactly why this commit removing an include affected a different file. Original message: RISCVRegisterInfo.h is part of the CodeGen layer. The Utils library is intended to be shared with the MC layer so shouldn't use files from the CodeGen layer. The register enum names are already available from RISCVMCTargetDesc.h. It appears what was coming from this include was a transitive include of the Register class which I've replaced with MCRegister. Register has a constructor from MCRegister so it should be convertible.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions