diff --git a/include/llvm-c/Core.h b/include/llvm-c/Core.h index c2445748c2f..cd987c88f56 100644 --- a/include/llvm-c/Core.h +++ b/include/llvm-c/Core.h @@ -490,7 +490,7 @@ const char *LLVMGetDataLayout(LLVMModuleRef M); * * @see Module::setDataLayout() */ -void LLVMSetDataLayout(LLVMModuleRef M, const char *Triple); +void LLVMSetDataLayout(LLVMModuleRef M, const char *DataLayoutStr); /** * Obtain the target triple for a module. diff --git a/lib/IR/Core.cpp b/lib/IR/Core.cpp index d3abe0b9262..b423716f3ac 100644 --- a/lib/IR/Core.cpp +++ b/lib/IR/Core.cpp @@ -164,8 +164,8 @@ const char * LLVMGetDataLayout(LLVMModuleRef M) { return unwrap(M)->getDataLayoutStr().c_str(); } -void LLVMSetDataLayout(LLVMModuleRef M, const char *Triple) { - unwrap(M)->setDataLayout(Triple); +void LLVMSetDataLayout(LLVMModuleRef M, const char *DataLayoutStr) { + unwrap(M)->setDataLayout(DataLayoutStr); } /*--.. Target triple .......................................................--*/