aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGClass.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2010-03-24 05:32:05 +0000
committerAnders Carlsson <andersca@mac.com>2010-03-24 05:32:05 +0000
commit5eea8768b7a659825a46d7e55730a75282231a6f (patch)
tree79ef04b571efdcf63c4445842fc17cd75a0900c3 /lib/CodeGen/CGClass.cpp
parent1a37d0a8f0f7110046e499bbe1117fec91f31f7e (diff)
Use getNamedGlobal instead of getGlobalVariable. (Fixes self-host).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99385 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGClass.cpp')
-rw-r--r--lib/CodeGen/CGClass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGClass.cpp b/lib/CodeGen/CGClass.cpp
index af846329af..e2953d0c8b 100644
--- a/lib/CodeGen/CGClass.cpp
+++ b/lib/CodeGen/CGClass.cpp
@@ -1560,7 +1560,7 @@ void CodeGenFunction::InitializeVtablePtrs(const CXXRecordDecl *ClassDecl) {
if (!ClassDecl->isDynamicClass())
return;
- llvm::Constant *VTable = CGM.getVTables().getAddrOfVTable(ClassDecl);
+ llvm::Constant *VTable = CGM.getVTables().GetAddrOfVTable(ClassDecl);
const CodeGenVTables::AddrSubMap_t& AddressPoints =
CGM.getVTables().getAddressPoints(ClassDecl);