Skip to content

Commit c6e27b3

Browse files
committed
Auto generated visibility macros for Clang source files
1 parent 42360a8 commit c6e27b3

File tree

14 files changed

+263
-249
lines changed

14 files changed

+263
-249
lines changed

clang/lib/AST/ByteCode/Compiler.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include "PrimType.h"
1616
#include "Program.h"
1717
#include "clang/AST/Attr.h"
18+
#include "clang/Support/Compiler.h"
1819

1920
using namespace clang;
2021
using namespace clang::interp;
@@ -6205,8 +6206,8 @@ bool Compiler<Emitter>::emitDestruction(const Descriptor *Desc) {
62056206
namespace clang {
62066207
namespace interp {
62076208

6208-
template class Compiler<ByteCodeEmitter>;
6209-
template class Compiler<EvalEmitter>;
6209+
template class CLANG_EXPORT_TEMPLATE Compiler<ByteCodeEmitter>;
6210+
template class CLANG_EXPORT_TEMPLATE Compiler<EvalEmitter>;
62106211

62116212
} // namespace interp
62126213
} // namespace clang

clang/lib/ASTMatchers/ASTMatchersInternal.cpp

Lines changed: 231 additions & 230 deletions
Large diffs are not rendered by default.

clang/lib/CodeGen/BackendUtil.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include "clang/Frontend/FrontendDiagnostic.h"
1717
#include "clang/Frontend/Utils.h"
1818
#include "clang/Lex/HeaderSearchOptions.h"
19+
#include "clang/Support/Compiler.h"
1920
#include "llvm/ADT/SmallSet.h"
2021
#include "llvm/ADT/StringExtras.h"
2122
#include "llvm/ADT/StringSwitch.h"
@@ -98,7 +99,7 @@ using namespace llvm;
9899
#include "llvm/Support/Extension.def"
99100

100101
namespace llvm {
101-
extern cl::opt<bool> PrintPipelinePasses;
102+
CLANG_ABI extern cl::opt<bool> PrintPipelinePasses;
102103

103104
// Experiment to move sanitizers earlier.
104105
static cl::opt<bool> ClSanitizeOnOptimizerEarlyEP(
@@ -120,7 +121,7 @@ static cl::opt<PGOOptions::ColdFuncOpt> ClPGOColdFuncAttr(
120121
clEnumValN(PGOOptions::ColdFuncOpt::OptNone, "optnone",
121122
"Mark cold functions with optnone.")));
122123

123-
extern cl::opt<InstrProfCorrelator::ProfCorrelatorKind> ProfileCorrelate;
124+
CLANG_ABI extern cl::opt<InstrProfCorrelator::ProfCorrelatorKind> ProfileCorrelate;
124125
} // namespace llvm
125126

126127
namespace {

clang/lib/CodeGen/CGExprAgg.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include "clang/AST/DeclCXX.h"
2323
#include "clang/AST/DeclTemplate.h"
2424
#include "clang/AST/StmtVisitor.h"
25+
#include "clang/Support/Compiler.h"
2526
#include "llvm/IR/Constants.h"
2627
#include "llvm/IR/Function.h"
2728
#include "llvm/IR/GlobalVariable.h"
@@ -36,7 +37,7 @@ using namespace CodeGen;
3637
//===----------------------------------------------------------------------===//
3738

3839
namespace llvm {
39-
extern cl::opt<bool> EnableSingleByteCoverage;
40+
CLANG_ABI extern cl::opt<bool> EnableSingleByteCoverage;
4041
} // namespace llvm
4142

4243
namespace {

clang/lib/CodeGen/CGExprComplex.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include "CodeGenModule.h"
1616
#include "ConstantEmitter.h"
1717
#include "clang/AST/StmtVisitor.h"
18+
#include "clang/Support/Compiler.h"
1819
#include "llvm/ADT/STLExtras.h"
1920
#include "llvm/IR/Constants.h"
2021
#include "llvm/IR/Instructions.h"
@@ -29,7 +30,7 @@ using namespace CodeGen;
2930
//===----------------------------------------------------------------------===//
3031

3132
namespace llvm {
32-
extern cl::opt<bool> EnableSingleByteCoverage;
33+
CLANG_ABI extern cl::opt<bool> EnableSingleByteCoverage;
3334
} // namespace llvm
3435

3536
typedef CodeGenFunction::ComplexPairTy ComplexPairTy;

clang/lib/CodeGen/CGExprScalar.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#include "clang/AST/StmtVisitor.h"
3030
#include "clang/Basic/CodeGenOptions.h"
3131
#include "clang/Basic/TargetInfo.h"
32+
#include "clang/Support/Compiler.h"
3233
#include "llvm/ADT/APFixedPoint.h"
3334
#include "llvm/IR/CFG.h"
3435
#include "llvm/IR/Constants.h"
@@ -56,7 +57,7 @@ using llvm::Value;
5657
//===----------------------------------------------------------------------===//
5758

5859
namespace llvm {
59-
extern cl::opt<bool> EnableSingleByteCoverage;
60+
CLANG_ABI extern cl::opt<bool> EnableSingleByteCoverage;
6061
} // namespace llvm
6162

6263
namespace {

clang/lib/CodeGen/CGStmt.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#include "clang/Basic/PrettyStackTrace.h"
2525
#include "clang/Basic/SourceManager.h"
2626
#include "clang/Basic/TargetInfo.h"
27+
#include "clang/Support/Compiler.h"
2728
#include "llvm/ADT/ArrayRef.h"
2829
#include "llvm/ADT/DenseMap.h"
2930
#include "llvm/ADT/SmallSet.h"
@@ -44,7 +45,7 @@ using namespace CodeGen;
4445
//===----------------------------------------------------------------------===//
4546

4647
namespace llvm {
47-
extern cl::opt<bool> EnableSingleByteCoverage;
48+
CLANG_ABI extern cl::opt<bool> EnableSingleByteCoverage;
4849
} // namespace llvm
4950

5051
void CodeGenFunction::EmitStopPoint(const Stmt *S) {

clang/lib/CodeGen/CodeGenFunction.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
#include "clang/Basic/TargetInfo.h"
3636
#include "clang/CodeGen/CGFunctionInfo.h"
3737
#include "clang/Frontend/FrontendDiagnostic.h"
38+
#include "clang/Support/Compiler.h"
3839
#include "llvm/ADT/ArrayRef.h"
3940
#include "llvm/Frontend/OpenMP/OMPIRBuilder.h"
4041
#include "llvm/IR/DataLayout.h"
@@ -54,7 +55,7 @@ using namespace clang;
5455
using namespace CodeGen;
5556

5657
namespace llvm {
57-
extern cl::opt<bool> EnableSingleByteCoverage;
58+
CLANG_ABI extern cl::opt<bool> EnableSingleByteCoverage;
5859
} // namespace llvm
5960

6061
/// shouldEmitLifetimeMarkers - Decide whether we need emit the life-time

clang/lib/CodeGen/CodeGenPGO.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include "CoverageMappingGen.h"
1616
#include "clang/AST/RecursiveASTVisitor.h"
1717
#include "clang/AST/StmtVisitor.h"
18+
#include "clang/Support/Compiler.h"
1819
#include "llvm/IR/Intrinsics.h"
1920
#include "llvm/IR/MDBuilder.h"
2021
#include "llvm/Support/CommandLine.h"
@@ -24,7 +25,7 @@
2425
#include <optional>
2526

2627
namespace llvm {
27-
extern cl::opt<bool> EnableSingleByteCoverage;
28+
CLANG_ABI extern cl::opt<bool> EnableSingleByteCoverage;
2829
} // namespace llvm
2930

3031
static llvm::cl::opt<bool>

clang/lib/CodeGen/CoverageMappingGen.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include "clang/Basic/FileManager.h"
1818
#include "clang/Frontend/FrontendDiagnostic.h"
1919
#include "clang/Lex/Lexer.h"
20+
#include "clang/Support/Compiler.h"
2021
#include "llvm/ADT/DenseSet.h"
2122
#include "llvm/ADT/SmallSet.h"
2223
#include "llvm/ADT/StringExtras.h"
@@ -33,7 +34,7 @@
3334
#define COVMAP_V3
3435

3536
namespace llvm {
36-
cl::opt<bool>
37+
CLANG_ABI cl::opt<bool>
3738
EnableSingleByteCoverage("enable-single-byte-coverage",
3839
llvm::cl::ZeroOrMore,
3940
llvm::cl::desc("Enable single byte coverage"),
@@ -47,7 +48,7 @@ static llvm::cl::opt<bool> EmptyLineCommentCoverage(
4748
llvm::cl::init(true), llvm::cl::Hidden);
4849

4950
namespace llvm::coverage {
50-
cl::opt<bool> SystemHeadersCoverage(
51+
CLANG_ABI cl::opt<bool> SystemHeadersCoverage(
5152
"system-headers-coverage",
5253
cl::desc("Enable collecting coverage from system headers"), cl::init(false),
5354
cl::Hidden);

0 commit comments

Comments
 (0)