diff options
-rw-r--r-- | llvm/include/llvm-c/Core.h | 2 | ||||
-rw-r--r-- | llvm/lib/IR/Core.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/llvm/include/llvm-c/Core.h b/llvm/include/llvm-c/Core.h index c2445748c2f..cd987c88f56 100644 --- a/llvm/include/llvm-c/Core.h +++ b/llvm/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/llvm/lib/IR/Core.cpp b/llvm/lib/IR/Core.cpp index d3abe0b9262..b423716f3ac 100644 --- a/llvm/lib/IR/Core.cpp +++ b/llvm/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 .......................................................--*/ |