Skip to content
Snippets Groups Projects
Commit 6be2b179 authored by Mike Stump's avatar Mike Stump
Browse files

Refine linkage on thunks. WIP.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89287 91177308-0d34-0410-b5e6-96231b3b80d8
parent f4961da8
No related branches found
No related tags found
No related merge requests found
...@@ -69,7 +69,6 @@ private: ...@@ -69,7 +69,6 @@ private:
llvm::DenseMap<CtorVtable_t, int64_t> &AddressPoints; llvm::DenseMap<CtorVtable_t, int64_t> &AddressPoints;
typedef CXXRecordDecl::method_iterator method_iter; typedef CXXRecordDecl::method_iterator method_iter;
// FIXME: Linkage should follow vtable
const bool Extern; const bool Extern;
const uint32_t LLVMPointerWidth; const uint32_t LLVMPointerWidth;
Index_t extra; Index_t extra;
...@@ -82,7 +81,7 @@ public: ...@@ -82,7 +81,7 @@ public:
BLayout(cgm.getContext().getASTRecordLayout(l)), BLayout(cgm.getContext().getASTRecordLayout(l)),
rtti(cgm.GenerateRttiRef(c)), VMContext(cgm.getModule().getContext()), rtti(cgm.GenerateRttiRef(c)), VMContext(cgm.getModule().getContext()),
CGM(cgm), AddressPoints(*new llvm::DenseMap<CtorVtable_t, int64_t>), CGM(cgm), AddressPoints(*new llvm::DenseMap<CtorVtable_t, int64_t>),
Extern(true), Extern(!l->isInAnonymousNamespace()),
LLVMPointerWidth(cgm.getContext().Target.getPointerWidth(0)) { LLVMPointerWidth(cgm.getContext().Target.getPointerWidth(0)) {
Ptr8Ty = llvm::PointerType::get(llvm::Type::getInt8Ty(VMContext), 0); Ptr8Ty = llvm::PointerType::get(llvm::Type::getInt8Ty(VMContext), 0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment