[llvm] r227247 - [ExecutionEngine] Fix r227228 tests on Windows
Keno Fischer
kfischer at college.harvard.edu
Tue Jan 27 13:33:26 PST 2015
Author: kfischer
Date: Tue Jan 27 15:33:25 2015
New Revision: 227247
URL: http://llvm.org/viewvc/llvm-project?rev=227247&view=rev
Log:
[ExecutionEngine] Fix r227228 tests on Windows
On Windows, we're running MCJIT with ELF, so the module needs to have
its Triple explicitly adjusted.
Modified:
llvm/trunk/unittests/ExecutionEngine/MCJIT/MCJITTestBase.h
Modified: llvm/trunk/unittests/ExecutionEngine/MCJIT/MCJITTestBase.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/ExecutionEngine/MCJIT/MCJITTestBase.h?rev=227247&r1=227246&r2=227247&view=diff
==============================================================================
--- llvm/trunk/unittests/ExecutionEngine/MCJIT/MCJITTestBase.h (original)
+++ llvm/trunk/unittests/ExecutionEngine/MCJIT/MCJITTestBase.h Tue Jan 27 15:33:25 2015
@@ -344,6 +344,7 @@ protected:
void createJITFromAssembly(const char *Test) {
SMDiagnostic Error;
M = parseAssemblyString(Test, Error, Context);
+ M->setTargetTriple(Triple::normalize(BuilderTriple));
std::string errMsg;
raw_string_ostream os(errMsg);
More information about the llvm-commits
mailing list