diff options
author | Anders Carlsson <andersca@mac.com> | 2009-12-07 04:35:11 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-12-07 04:35:11 +0000 |
commit | f53df2398e07d13be9962b95aebc19b31706fa33 (patch) | |
tree | a9483fc6f2798e465696bab68b7dfba13e80e965 /lib/CodeGen/CGVtable.cpp | |
parent | a93c934af4fbf97cbe8e649d82e68ccacfe57c95 (diff) |
Move key functions to a separate map.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90745 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGVtable.cpp')
-rw-r--r-- | lib/CodeGen/CGVtable.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/CodeGen/CGVtable.cpp b/lib/CodeGen/CGVtable.cpp index 6fda6a4404..d227a5e47e 100644 --- a/lib/CodeGen/CGVtable.cpp +++ b/lib/CodeGen/CGVtable.cpp @@ -1433,10 +1433,8 @@ void CGVtableInfo::MaybeEmitVtable(GlobalDecl GD) { if (!RD->isDynamicClass()) return; - const ASTRecordLayout &Layout = CGM.getContext().getASTRecordLayout(RD); - // Get the key function. - const CXXMethodDecl *KeyFunction = Layout.getKeyFunction(); + const CXXMethodDecl *KeyFunction = CGM.getContext().getKeyFunction(RD); if (KeyFunction) { // We don't have the right key function. |