[Lldb-commits] [PATCH] D80130: [mlir][SystemZ] Fix incompatible datalayout in SystemZ
Mehdi AMINI via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Mon May 18 23:17:52 PDT 2020
mehdi_amini accepted this revision.
mehdi_amini added inline comments.
================
Comment at: mlir/lib/ExecutionEngine/ExecutionEngine.cpp:123
}
- std::unique_ptr<llvm::TargetMachine> machine(
- target->createTargetMachine(targetTriple, "generic", "", {}, {}));
+ std::string cpu = std::string(llvm::sys::getHostCPUName());
+ llvm::SubtargetFeatures features;
----------------
You should be able to write just `std::string cpu = llvm::sys::getHostCPUName();`? (Or `std::string cpu(llvm::sys::getHostCPUName());`)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D80130/new/
https://reviews.llvm.org/D80130
More information about the lldb-commits
mailing list