mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-04-30 15:10:59 +03:00
LLVM7 (#2490)
* MCAsmBackend changes * Add profile-rt-70 * ProfData definition * ProfData tool * Remove profile-rt CMakeLists.txt * Update druntime submodule
This commit is contained in:
parent
6b462b1018
commit
a73188c8e5
25 changed files with 5039 additions and 2 deletions
|
@ -266,7 +266,12 @@ void disassemble(const llvm::TargetMachine &tm,
|
|||
|
||||
llvm::MCTargetOptions opts;
|
||||
auto mab = unique(target.createMCAsmBackend(
|
||||
*mri, tm.getTargetTriple().getTriple(), tm.getTargetCPU(), opts));
|
||||
#if LDC_LLVM_VER >= 700
|
||||
*sti,*mri,opts)
|
||||
#else
|
||||
*mri, tm.getTargetTriple().getTriple(), tm.getTargetCPU(), opts)
|
||||
#endif
|
||||
);
|
||||
if (nullptr == mab) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue