From ab96d57a0b63071a915d504d21fe9eba0b3d0d69 Mon Sep 17 00:00:00 2001 From: Amaury Sechet Date: Mon, 15 Feb 2016 23:40:06 +0000 Subject: [PATCH] Rename LLVMSetDataLayout's argument to match what they stand for git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@260916 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm-c/Core.h | 2 +- lib/IR/Core.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 .......................................................--*/ -- 2.11.0