Skip to content

Commit 6f8866e

Browse files
committed
[llvm] manual fix-ups to IDS codemod of AsmParser and Bitcode libraries
1 parent 515859b commit 6f8866e

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

llvm/include/llvm/Bitcode/BitcodeReader.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ struct ParserCallbacks {
119119
IdentificationBit(IdentificationBit), ModuleBit(ModuleBit) {}
120120

121121
// Calls the ctor.
122-
friend Expected<BitcodeFileContents>
122+
LLVM_ABI_FRIEND friend Expected<BitcodeFileContents>
123123
getBitcodeFileContents(MemoryBufferRef Buffer);
124124

125125
Expected<std::unique_ptr<Module>>

llvm/lib/AsmParser/LLParser.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
#include "llvm/IR/Value.h"
4545
#include "llvm/IR/ValueSymbolTable.h"
4646
#include "llvm/Support/Casting.h"
47+
#include "llvm/Support/Compiler.h"
4748
#include "llvm/Support/ErrorHandling.h"
4849
#include "llvm/Support/MathExtras.h"
4950
#include "llvm/Support/ModRef.h"
@@ -63,7 +64,7 @@ static cl::opt<bool> AllowIncompleteIR(
6364
"Allow incomplete IR on a best effort basis (references to unknown "
6465
"metadata will be dropped)"));
6566

66-
extern llvm::cl::opt<bool> UseNewDbgInfoFormat;
67+
LLVM_ABI extern llvm::cl::opt<bool> UseNewDbgInfoFormat;
6768

6869
static std::string getTypeString(Type *T) {
6970
std::string Result;

llvm/lib/Bitcode/Reader/BitcodeReader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ static cl::opt<bool> ExpandConstantExprs(
101101
cl::desc(
102102
"Expand constant expressions to instructions for testing purposes"));
103103

104-
extern cl::opt<bool> UseNewDbgInfoFormat;
104+
LLVM_ABI extern cl::opt<bool> UseNewDbgInfoFormat;
105105

106106
namespace {
107107

llvm/lib/Bitcode/Writer/BitcodeWriter.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
#include "llvm/Support/AtomicOrdering.h"
6767
#include "llvm/Support/Casting.h"
6868
#include "llvm/Support/CommandLine.h"
69+
#include "llvm/Support/Compiler.h"
6970
#include "llvm/Support/Endian.h"
7071
#include "llvm/Support/Error.h"
7172
#include "llvm/Support/ErrorHandling.h"
@@ -120,7 +121,7 @@ namespace llvm {
120121
extern FunctionSummary::ForceSummaryHotnessType ForceSummaryEdgesCold;
121122
}
122123

123-
extern llvm::cl::opt<bool> UseNewDbgInfoFormat;
124+
LLVM_ABI extern llvm::cl::opt<bool> UseNewDbgInfoFormat;
124125

125126
namespace {
126127

0 commit comments

Comments
 (0)