mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-23 14:25:07 +00:00
[ExecutionEngine] Fix r227228 tests on Windows
On Windows, we're running MCJIT with ELF, so the module needs to have its Triple explicitly adjusted. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227247 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -344,6 +344,7 @@ protected:
|
|||||||
void createJITFromAssembly(const char *Test) {
|
void createJITFromAssembly(const char *Test) {
|
||||||
SMDiagnostic Error;
|
SMDiagnostic Error;
|
||||||
M = parseAssemblyString(Test, Error, Context);
|
M = parseAssemblyString(Test, Error, Context);
|
||||||
|
M->setTargetTriple(Triple::normalize(BuilderTriple));
|
||||||
|
|
||||||
std::string errMsg;
|
std::string errMsg;
|
||||||
raw_string_ostream os(errMsg);
|
raw_string_ostream os(errMsg);
|
||||||
|
Reference in New Issue
Block a user