llvm: update code to new API (#13500)

* llvm: update code to new API

* llvm: remove OLDLLVM define
This commit is contained in:
oltolm 2023-03-10 23:57:21 +01:00 committed by GitHub
parent ec8cb1668c
commit 520524285a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 187 additions and 162 deletions

View file

@ -1304,7 +1304,7 @@ std::string jit_compiler::cpu(const std::string& _cpu)
if (m_cpu.empty())
{
m_cpu = llvm::sys::getHostCPUName().operator std::string();
m_cpu = llvm::sys::getHostCPUName().str();
if (m_cpu == "sandybridge" ||
m_cpu == "ivybridge" ||