diff options
| author | Anders Carlsson <andersca@mac.com> | 2011-01-24 02:04:33 +0000 |
|---|---|---|
| committer | Anders Carlsson <andersca@mac.com> | 2011-01-24 02:04:33 +0000 |
| commit | 68d3424b8c9083e1ecf0b4898e45d016cc31094a (patch) | |
| tree | ba891dcc7a59577817688a7357daed90677db904 /clang/lib/CodeGen | |
| parent | ba840fb73c77c3aae5603f59b4b09cddef60620e (diff) | |
| download | bcm5719-llvm-68d3424b8c9083e1ecf0b4898e45d016cc31094a.tar.gz bcm5719-llvm-68d3424b8c9083e1ecf0b4898e45d016cc31094a.zip | |
Change CodeGenModule::getVTableLinkage to be a non-static member function.
llvm-svn: 124095
Diffstat (limited to 'clang/lib/CodeGen')
| -rw-r--r-- | clang/lib/CodeGen/CGRTTI.cpp | 7 | ||||
| -rw-r--r-- | clang/lib/CodeGen/CodeGenModule.h | 3 |
2 files changed, 5 insertions, 5 deletions
diff --git a/clang/lib/CodeGen/CGRTTI.cpp b/clang/lib/CodeGen/CGRTTI.cpp index 6e57f90e99f..dd7e059f19f 100644 --- a/clang/lib/CodeGen/CGRTTI.cpp +++ b/clang/lib/CodeGen/CGRTTI.cpp @@ -329,7 +329,8 @@ static bool ContainsIncompleteClassType(QualType Ty) { /// getTypeInfoLinkage - Return the linkage that the type info and type info /// name constants should have for the given type. -static llvm::GlobalVariable::LinkageTypes getTypeInfoLinkage(QualType Ty) { +static llvm::GlobalVariable::LinkageTypes +getTypeInfoLinkage(CodeGenModule &CGM, QualType Ty) { // Itanium C++ ABI 2.9.5p7: // In addition, it and all of the intermediate abi::__pointer_type_info // structs in the chain down to the abi::__class_type_info for the @@ -352,7 +353,7 @@ static llvm::GlobalVariable::LinkageTypes getTypeInfoLinkage(QualType Ty) { if (const RecordType *Record = dyn_cast<RecordType>(Ty)) { const CXXRecordDecl *RD = cast<CXXRecordDecl>(Record->getDecl()); if (RD->isDynamicClass()) - return CodeGenModule::getVTableLinkage(RD); + return CGM.getVTableLinkage(RD); } return llvm::GlobalValue::LinkOnceODRLinkage; @@ -530,7 +531,7 @@ llvm::Constant *RTTIBuilder::BuildTypeInfo(QualType Ty, bool Force) { if (IsStdLib) Linkage = llvm::GlobalValue::ExternalLinkage; else - Linkage = getTypeInfoLinkage(Ty); + Linkage = getTypeInfoLinkage(CGM, Ty); // Add the vtable pointer. BuildVTablePointer(cast<Type>(Ty)); diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h index 55674ba6a6a..f38c0bc018f 100644 --- a/clang/lib/CodeGen/CodeGenModule.h +++ b/clang/lib/CodeGen/CodeGenModule.h @@ -496,8 +496,7 @@ public: /// getVTableLinkage - Return the appropriate linkage for the vtable, VTT, /// and type information of the given class. - static llvm::GlobalVariable::LinkageTypes - getVTableLinkage(const CXXRecordDecl *RD); + llvm::GlobalVariable::LinkageTypes getVTableLinkage(const CXXRecordDecl *RD); /// GetTargetTypeStoreSize - Return the store size, in character units, of /// the given LLVM type. |

