summaryrefslogtreecommitdiffstats
path: root/clang/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
commit2bb27f53e0010d75cce6e020fe8c40edbb45cfcb (patch)
treed010b1854cb6875206958fe26415a50dbf047a53 /clang/lib/CodeGen/CGExprAgg.cpp
parent6e6ac4712551b60b54708eda7f85ab30f193cddd (diff)
downloadbcm5719-llvm-2bb27f53e0010d75cce6e020fe8c40edbb45cfcb.tar.gz
bcm5719-llvm-2bb27f53e0010d75cce6e020fe8c40edbb45cfcb.zip
Move the vtable builder to CGVtable.cpp, general cleanup.
llvm-svn: 83798
Diffstat (limited to 'clang/lib/CodeGen/CGExprAgg.cpp')
-rw-r--r--clang/lib/CodeGen/CGExprAgg.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGExprAgg.cpp b/clang/lib/CodeGen/CGExprAgg.cpp
index 82ec4fd0b7b..b25636ed08e 100644
--- a/clang/lib/CodeGen/CGExprAgg.cpp
+++ b/clang/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 {
OpenPOWER on IntegriCloud