Begin struct layout work.
llvm-svn: 43236
diff --git a/clang/CodeGen/CodeGenFunction.cpp b/clang/CodeGen/CodeGenFunction.cpp
index 1457ec5..9e3f1ce 100644
--- a/clang/CodeGen/CodeGenFunction.cpp
+++ b/clang/CodeGen/CodeGenFunction.cpp
@@ -126,3 +126,14 @@
BB->setName(N);
}
+/// getRecordLayoutInfo - Return record layout info.
+RecordLayoutInfo *CodeGenFunction::getRecordLayoutInfo(CodeGenTypes &CGT,
+ QualType RTy) {
+ assert (isa<RecordType>(RTy)
+ && "Unexpected type. RecordType expected here.");
+
+ const llvm::Type *Ty = ConvertType(RTy);
+ assert (Ty && "Unable to find llvm::Type");
+
+ return CGT.getRecordLayoutInfo(Ty);
+}