CGCXX.cpp (204643) | CGCXX.cpp (204793) |
---|---|
1//===--- CGDecl.cpp - Emit LLVM Code for declarations ---------------------===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// --- 128 unchanged lines hidden (view full) --- 137 case llvm::GlobalValue::LinkOnceODRLinkage: 138 return true; 139 140 // Other linkages will probably never be supported. 141 default: 142 return true; 143 } 144 | 1//===--- CGDecl.cpp - Emit LLVM Code for declarations ---------------------===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// --- 128 unchanged lines hidden (view full) --- 137 case llvm::GlobalValue::LinkOnceODRLinkage: 138 return true; 139 140 // Other linkages will probably never be supported. 141 default: 142 return true; 143 } 144 |
145 llvm::GlobalValue::LinkageTypes TargetLinkage 146 = getFunctionLinkage(cast<FunctionDecl>(TargetDecl.getDecl())); 147 148 if (llvm::GlobalValue::isWeakForLinker(TargetLinkage)) 149 return true; 150 |
|
145 // Derive the type for the alias. 146 const llvm::PointerType *AliasType 147 = getTypes().GetFunctionType(AliasDecl)->getPointerTo(); 148 149 // Find the referrent. Some aliases might require a bitcast, in 150 // which case the caller is responsible for ensuring the soundness 151 // of these semantics. 152 llvm::GlobalValue *Ref = cast<llvm::GlobalValue>(GetAddrOfGlobal(TargetDecl)); --- 485 unchanged lines hidden --- | 151 // Derive the type for the alias. 152 const llvm::PointerType *AliasType 153 = getTypes().GetFunctionType(AliasDecl)->getPointerTo(); 154 155 // Find the referrent. Some aliases might require a bitcast, in 156 // which case the caller is responsible for ensuring the soundness 157 // of these semantics. 158 llvm::GlobalValue *Ref = cast<llvm::GlobalValue>(GetAddrOfGlobal(TargetDecl)); --- 485 unchanged lines hidden --- |