[llvm-branch-commits] [llvm-branch] r181625 - Fixing MCJIT unit test on Windows.
Andrew Kaylor
andrew.kaylor at intel.com
Fri May 10 13:28:44 PDT 2013
Author: akaylor
Date: Fri May 10 15:28:44 2013
New Revision: 181625
URL: http://llvm.org/viewvc/llvm-project?rev=181625&view=rev
Log:
Fixing MCJIT unit test on Windows.
Modified:
llvm/branches/release_33/unittests/ExecutionEngine/MCJIT/MCJITCAPITest.cpp
Modified: llvm/branches/release_33/unittests/ExecutionEngine/MCJIT/MCJITCAPITest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/release_33/unittests/ExecutionEngine/MCJIT/MCJITCAPITest.cpp?rev=181625&r1=181624&r2=181625&view=diff
==============================================================================
--- llvm/branches/release_33/unittests/ExecutionEngine/MCJIT/MCJITCAPITest.cpp (original)
+++ llvm/branches/release_33/unittests/ExecutionEngine/MCJIT/MCJITCAPITest.cpp Fri May 10 15:28:44 2013
@@ -48,6 +48,8 @@ TEST_F(MCJITCAPITest, simple_function) {
// Creates a function that returns 42, compiles it, and runs it.
LLVMModuleRef module = LLVMModuleCreateWithName("simple_module");
+
+ LLVMSetTarget(module, HostTriple.c_str());
LLVMValueRef function = LLVMAddFunction(
module, "simple_function", LLVMFunctionType(LLVMInt32Type(), 0, 0, 0));
More information about the llvm-branch-commits
mailing list