summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2009-11-19 00:49:05 +0000
committerMike Stump <mrs@apple.com>2009-11-19 00:49:05 +0000
commit1960b204031e38c9e1727cb6a8784a635b0647d3 (patch)
treeca9c84bcb5d22e8354c7fb8499a2a3fc283a4df4 /clang/lib/CodeGen
parentb8c4825fed371d839121f4df4ea1fe94c86fd0b2 (diff)
downloadbcm5719-llvm-1960b204031e38c9e1727cb6a8784a635b0647d3.tar.gz
bcm5719-llvm-1960b204031e38c9e1727cb6a8784a635b0647d3.zip
Refine linkage on thunks. WIP.
llvm-svn: 89287
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGVtable.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGVtable.cpp b/clang/lib/CodeGen/CGVtable.cpp
index 4c97a9bdeeb..a726fec5715 100644
--- a/clang/lib/CodeGen/CGVtable.cpp
+++ b/clang/lib/CodeGen/CGVtable.cpp
@@ -69,7 +69,6 @@ private:
llvm::DenseMap<CtorVtable_t, int64_t> &AddressPoints;
typedef CXXRecordDecl::method_iterator method_iter;
- // FIXME: Linkage should follow vtable
const bool Extern;
const uint32_t LLVMPointerWidth;
Index_t extra;
@@ -82,7 +81,7 @@ public:
BLayout(cgm.getContext().getASTRecordLayout(l)),
rtti(cgm.GenerateRttiRef(c)), VMContext(cgm.getModule().getContext()),
CGM(cgm), AddressPoints(*new llvm::DenseMap<CtorVtable_t, int64_t>),
- Extern(true),
+ Extern(!l->isInAnonymousNamespace()),
LLVMPointerWidth(cgm.getContext().Target.getPointerWidth(0)) {
Ptr8Ty = llvm::PointerType::get(llvm::Type::getInt8Ty(VMContext), 0);
OpenPOWER on IntegriCloud