Skip to content

Commit 771ae5f

Browse files
committed
Just enable the extern template declarations and definitions on all platforms
1 parent e39aee5 commit 771ae5f

File tree

4 files changed

+0
-8
lines changed

4 files changed

+0
-8
lines changed

llvm/include/llvm/Analysis/LazyCallGraph.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1309,10 +1309,8 @@ class LazyCallGraphDOTPrinterPass
13091309
static bool isRequired() { return true; }
13101310
};
13111311

1312-
#ifdef _WIN32
13131312
extern template struct LLVM_TEMPLATE_ABI
13141313
Any::TypeId<const LazyCallGraph::SCC *>;
1315-
#endif
13161314
} // end namespace llvm
13171315

13181316
#endif // LLVM_ANALYSIS_LAZYCALLGRAPH_H

llvm/include/llvm/IR/PassInstrumentation.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,9 @@ class Module;
6666
class Loop;
6767
class Function;
6868

69-
#ifdef _WIN32
7069
extern template struct LLVM_TEMPLATE_ABI Any::TypeId<const Module *>;
7170
extern template struct LLVM_TEMPLATE_ABI Any::TypeId<const Function *>;
7271
extern template struct LLVM_TEMPLATE_ABI Any::TypeId<const Loop *>;
73-
#endif
7472

7573
/// This class manages callbacks registration, as well as provides a way for
7674
/// PassInstrumentation to pass control to the registered callbacks.

llvm/lib/Analysis/LazyCallGraph.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@ using namespace llvm;
3737

3838
#define DEBUG_TYPE "lcg"
3939

40-
#ifdef _WIN32
4140
template struct LLVM_EXPORT_TEMPLATE Any::TypeId<const LazyCallGraph::SCC *>;
42-
#endif
4341

4442
void LazyCallGraph::EdgeSequence::insertEdgeInternal(Node &TargetN,
4543
Edge::Kind EK) {

llvm/lib/IR/PassInstrumentation.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,9 @@
1717

1818
namespace llvm {
1919

20-
#ifdef _WIN32
2120
template struct LLVM_EXPORT_TEMPLATE Any::TypeId<const Module *>;
2221
template struct LLVM_EXPORT_TEMPLATE Any::TypeId<const Function *>;
2322
template struct LLVM_EXPORT_TEMPLATE Any::TypeId<const Loop *>;
24-
#endif
2523

2624
void PassInstrumentationCallbacks::addClassToPassName(StringRef ClassName,
2725
StringRef PassName) {

0 commit comments

Comments
 (0)