Skip to content

Commit f4a4661

Browse files
committed
Add comment explaining templates
1 parent 13a5b0c commit f4a4661

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

llvm/include/llvm/SandboxIR/Constant.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -798,6 +798,7 @@ class GlobalWithNodeAPI : public ParentT {
798798
}
799799
};
800800

801+
// These are needed for SandboxIRTest when building with LLVM_BUILD_LLVM_DYLIB
801802
extern template LLVM_TEMPLATE_ABI GlobalIFunc &
802803
GlobalWithNodeAPI<GlobalIFunc, llvm::GlobalIFunc, GlobalObject,
803804
llvm::GlobalObject>::LLVMGVToGV::operator()(llvm::GlobalIFunc

llvm/lib/SandboxIR/Constant.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,7 @@ template class GlobalWithNodeAPI<GlobalVariable, llvm::GlobalVariable,
302302
template class GlobalWithNodeAPI<GlobalAlias, llvm::GlobalAlias, GlobalValue,
303303
llvm::GlobalValue>;
304304

305+
// These are needed for SandboxIRTest when building with LLVM_BUILD_LLVM_DYLIB
305306
template LLVM_EXPORT_TEMPLATE GlobalIFunc &
306307
GlobalWithNodeAPI<GlobalIFunc, llvm::GlobalIFunc, GlobalObject,
307308
llvm::GlobalObject>::LLVMGVToGV::operator()(llvm::GlobalIFunc

0 commit comments

Comments
 (0)