diff options
| author | bors <bors@rust-lang.org> | 2021-09-20 07:21:05 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-09-20 07:21:05 +0000 |
| commit | db1fb85cff63ad5fffe435e17128f99f9e1d970c (patch) | |
| tree | ca06ae6710ea86d1f428d321a0cafaa5f2dbf083 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp | |
| parent | e71925aab9e28ce35363e3fdef27ca011ac6a1dc (diff) | |
| parent | 5d22b1afe2ff3adb9903cb71ff386828c16fd805 (diff) | |
| download | rust-db1fb85cff63ad5fffe435e17128f99f9e1d970c.tar.gz rust-db1fb85cff63ad5fffe435e17128f99f9e1d970c.zip | |
Auto merge of #88321 - glaubitz:m68k-linux, r=wesleywiser
Add initial support for m68k This patch series adds initial support for m68k making use of the new M68k backend introduced with LLVM-13. Additional changes will be needed to be able to actually use the backend for this target.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
| -rw-r--r-- | compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp b/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp index b7cad1c3ba6..8dbacd71fc1 100644 --- a/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp +++ b/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp @@ -201,6 +201,12 @@ void LLVMRustAddLastExtensionPasses( #define SUBTARGET_AVR #endif +#ifdef LLVM_COMPONENT_M68k +#define SUBTARGET_M68K SUBTARGET(M68k) +#else +#define SUBTARGET_M68K +#endif + #ifdef LLVM_COMPONENT_MIPS #define SUBTARGET_MIPS SUBTARGET(Mips) #else @@ -248,6 +254,7 @@ void LLVMRustAddLastExtensionPasses( SUBTARGET_ARM \ SUBTARGET_AARCH64 \ SUBTARGET_AVR \ + SUBTARGET_M68K \ SUBTARGET_MIPS \ SUBTARGET_PPC \ SUBTARGET_SYSTEMZ \ |
