[llvm] r367954 - Reverting D65760/r367944 due to buildbot failure.
Puyan Lotfi via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 5 16:47:07 PDT 2019
Author: zer0
Date: Mon Aug 5 16:47:07 2019
New Revision: 367954
URL: http://llvm.org/viewvc/llvm-project?rev=367954&view=rev
Log:
Reverting D65760/r367944 due to buildbot failure.
http://lab.llvm.org:8011/builders/clang-x86_64-debian-fast/builds/15952/steps/build/logs/stdio
JITTargetMachineBuilder.cpp fails to build.
Modified:
llvm/trunk/lib/ExecutionEngine/Orc/JITTargetMachineBuilder.cpp
Modified: llvm/trunk/lib/ExecutionEngine/Orc/JITTargetMachineBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/Orc/JITTargetMachineBuilder.cpp?rev=367954&r1=367953&r2=367954&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/Orc/JITTargetMachineBuilder.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/Orc/JITTargetMachineBuilder.cpp Mon Aug 5 16:47:07 2019
@@ -22,21 +22,7 @@ JITTargetMachineBuilder::JITTargetMachin
Expected<JITTargetMachineBuilder> JITTargetMachineBuilder::detectHost() {
// FIXME: getProcessTriple is bogus. It returns the host LLVM was compiled on,
// rather than a valid triple for the current process.
- JITTargetMachineBuilder TMBuilder(Triple(sys::getProcessTriple()));
-
- // Retrieve host CPU name and sub-target features and add them to builder.
- // Relocation model, code model and codegen opt level are kept to default
- // values.
- llvm::SubtargetFeatures SubtargetFeatures;
- llvm::StringMap<bool> FeatureMap;
- llvm::sys::getHostCPUFeatures(FeatureMap);
- for (auto &Feature : FeatureMap)
- SubtargetFeatures.AddFeature(Feature.first(), Feature.second);
-
- TMBuilder.setCPU(llvm::sys::getHostCPUName());
- TMBuilder.addFeatures(SubtargetFeatures.getFeatures());
-
- return TMBuilder;
+ return JITTargetMachineBuilder(Triple(sys::getProcessTriple()));
}
Expected<std::unique_ptr<TargetMachine>>
More information about the llvm-commits
mailing list