Begin struct layout work.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43236 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/CodeGen/CodeGenFunction.cpp b/CodeGen/CodeGenFunction.cpp
index 1457ec5..9e3f1ce 100644
--- a/CodeGen/CodeGenFunction.cpp
+++ b/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);
+}