aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExprAgg.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-10-11 22:13:54 +0000
committerAnders Carlsson <andersca@mac.com>2009-10-11 22:13:54 +0000
commitdbd920c7758e6dfb678a8f503fb14ba97c26f23a (patch)
treef015cc9fac5b257dbbb40542f5be1eb8030406ba /lib/CodeGen/CGExprAgg.cpp
parentfc3bf4d4d2aea8353541a5710bed2ad00c451b68 (diff)
Move the vtable builder to CGVtable.cpp, general cleanup.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83798 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprAgg.cpp')
-rw-r--r--lib/CodeGen/CGExprAgg.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/CGExprAgg.cpp b/lib/CodeGen/CGExprAgg.cpp
index 82ec4fd0b7..b25636ed08 100644
--- a/lib/CodeGen/CGExprAgg.cpp
+++ b/lib/CodeGen/CGExprAgg.cpp
@@ -298,7 +298,8 @@ void AggExprEmitter::VisitUnaryAddrOf(const UnaryOperator *E) {
llvm::Value *FuncPtr;
if (MD->isVirtual()) {
- uint64_t Index = CGF.CGM.GetVtableIndex(MD->getCanonicalDecl());
+ int64_t Index =
+ CGF.CGM.getVtableInfo().getMethodVtableIndex(MD);
FuncPtr = llvm::ConstantInt::get(PtrDiffTy, Index + 1);
} else {