summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm-c/Core.h
diff options
context:
space:
mode:
authorAmaury Sechet <deadalnix@gmail.com>2016-02-16 00:23:52 +0000
committerAmaury Sechet <deadalnix@gmail.com>2016-02-16 00:23:52 +0000
commitf3549c4a1116ba88cbaebc7333e866cff9f5a612 (patch)
tree5d0a3c4e82c3b231a2016854d134a0b013d25b77 /llvm/include/llvm-c/Core.h
parent2ffde01b5627d6c466287fea9f5b5ba2be9948c2 (diff)
downloadbcm5719-llvm-f3549c4a1116ba88cbaebc7333e866cff9f5a612.tar.gz
bcm5719-llvm-f3549c4a1116ba88cbaebc7333e866cff9f5a612.zip
Deprecate LLVMGetDataLayout and replace it by LLVMGetDataLayoutStr
Summary: The name is confusing as it matche another method on the module. Reviewers: joker.eph, Wallbraker, echristo Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D17283 llvm-svn: 260920
Diffstat (limited to 'llvm/include/llvm-c/Core.h')
-rw-r--r--llvm/include/llvm-c/Core.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm/include/llvm-c/Core.h b/llvm/include/llvm-c/Core.h
index cd987c88f56..2e0a8b4f285 100644
--- a/llvm/include/llvm-c/Core.h
+++ b/llvm/include/llvm-c/Core.h
@@ -481,8 +481,13 @@ void LLVMDisposeModule(LLVMModuleRef M);
/**
* Obtain the data layout for a module.
*
- * @see Module::getDataLayout()
+ * @see Module::getDataLayoutStr()
+ *
+ * LLVMGetDataLayout is DEPRECATED, as the name is not only incorrect,
+ * but match the name of another method on the module. Prefer the use
+ * of LLVMGetDataLayoutStr, which is not ambiguous.
*/
+const char *LLVMGetDataLayoutStr(LLVMModuleRef M);
const char *LLVMGetDataLayout(LLVMModuleRef M);
/**
OpenPOWER on IntegriCloud