aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/COFFImportFile.cpp
diff options
context:
space:
mode:
authorR <rqou@berkeley.edu>2024-08-16 17:14:16 +0100
committerGitHub <noreply@github.com>2024-08-16 17:14:16 +0100
commitb221c37082707e35b492baa9ae8045c56b3ced0b (patch)
tree7280973e467070d19a23faa3e76bff46744f925f /llvm/lib/Object/COFFImportFile.cpp
parent42944da5ba7617bbc02f341e9ef401c325310a73 (diff)
downloadllvm-b221c37082707e35b492baa9ae8045c56b3ced0b.zip
llvm-b221c37082707e35b492baa9ae8045c56b3ced0b.tar.gz
llvm-b221c37082707e35b492baa9ae8045c56b3ced0b.tar.bz2
[RISCV] Allow YAML file to control multilib selection (#98856)
This changes the bare-metal driver logic such that it _always_ tries multilib.yaml if it exists, and it falls back to the hardwired/default RISC-V multilib selection only if a multilib.yaml doesn't exist. In contrast, the current behavior is that RISC-V can never use multilib.yaml, but other targets will try it if it exists. The flags `-march=` and `-mabi=` are exposed for multilib.yaml to match on. There is no attempt to help YAML file creators to duplicate the existing hard-wired multilib reuse logic -- they will have to implement it using `Mappings`. This should be backwards-compatible with existing sysroots, as multilib.yaml was previously never used for RISC-V, and the behavior doesn't change after this PR if the file doesn't exist.
Diffstat (limited to 'llvm/lib/Object/COFFImportFile.cpp')
0 files changed, 0 insertions, 0 deletions