[cfe-commits] r85131 - /cfe/trunk/lib/CodeGen/CGVtable.cpp
Chandler Carruth
chandlerc at gmail.com
Mon Oct 26 10:14:14 PDT 2009
Author: chandlerc
Date: Mon Oct 26 12:14:14 2009
New Revision: 85131
URL: http://llvm.org/viewvc/llvm-project?rev=85131&view=rev
Log:
Switch vtable to linkeonce_odr. Patch by nlewycky.
Modified:
cfe/trunk/lib/CodeGen/CGVtable.cpp
Modified: cfe/trunk/lib/CodeGen/CGVtable.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGVtable.cpp?rev=85131&r1=85130&r2=85131&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGVtable.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGVtable.cpp Mon Oct 26 12:14:14 2009
@@ -614,7 +614,7 @@
mangleCXXVtable(CGM.getMangleContext(), RD, Out);
llvm::GlobalVariable::LinkageTypes linktype;
- linktype = llvm::GlobalValue::WeakAnyLinkage;
+ linktype = llvm::GlobalValue::LinkOnceODRLinkage;
std::vector<llvm::Constant *> methods;
llvm::Type *Ptr8Ty=llvm::PointerType::get(llvm::Type::getInt8Ty(VMContext),0);
int64_t AddressPoint;
More information about the cfe-commits
mailing list