summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-12-07 04:35:11 +0000
committerAnders Carlsson <andersca@mac.com>2009-12-07 04:35:11 +0000
commit5ebf8b44e925c79fbdfb11aac9cb14522036f849 (patch)
tree6240fc3156e8d204cca414891b36a92384b2aeb9 /clang/lib/CodeGen
parent92c310cb7984bb3336725939dbb71709d473648e (diff)
downloadbcm5719-llvm-5ebf8b44e925c79fbdfb11aac9cb14522036f849.tar.gz
bcm5719-llvm-5ebf8b44e925c79fbdfb11aac9cb14522036f849.zip
Move key functions to a separate map.
llvm-svn: 90745
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGVtable.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGVtable.cpp b/clang/lib/CodeGen/CGVtable.cpp
index 6fda6a44046..d227a5e47ef 100644
--- a/clang/lib/CodeGen/CGVtable.cpp
+++ b/clang/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.
OpenPOWER on IntegriCloud