summaryrefslogtreecommitdiff
path: root/lib/IR/Core.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/IR/Core.cpp')
-rw-r--r--lib/IR/Core.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/IR/Core.cpp b/lib/IR/Core.cpp
index 68bc5c5810..b19fbe3fda 100644
--- a/lib/IR/Core.cpp
+++ b/lib/IR/Core.cpp
@@ -107,7 +107,7 @@ void LLVMDisposeModule(LLVMModuleRef M) {
/*--.. Data layout .........................................................--*/
const char * LLVMGetDataLayout(LLVMModuleRef M) {
- return unwrap(M)->getDataLayout().c_str();
+ return unwrap(M)->getDataLayoutStr().c_str();
}
void LLVMSetDataLayout(LLVMModuleRef M, const char *Triple) {