Skip to content

Commit a374c6e

Browse files
committed
[llvm] auto-annotate remaining DebugInfo library interfaces with IDS
1 parent 3782eb6 commit a374c6e

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

llvm/include/llvm/DebugInfo/DWARF/DWARFCFIPrinter.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#ifndef LLVM_DEBUGINFO_DWARF_DWARFCFIPRINTER_H
1010
#define LLVM_DEBUGINFO_DWARF_DWARFCFIPRINTER_H
1111

12+
#include "llvm/Support/Compiler.h"
1213
#include "llvm/DebugInfo/DWARF/DWARFCFIProgram.h"
1314

1415
namespace llvm {
@@ -17,7 +18,7 @@ struct DIDumpOptions;
1718

1819
namespace dwarf {
1920

20-
void printCFIProgram(const CFIProgram &P, raw_ostream &OS,
21+
LLVM_ABI void printCFIProgram(const CFIProgram &P, raw_ostream &OS,
2122
const DIDumpOptions &DumpOpts, unsigned IndentLevel,
2223
std::optional<uint64_t> Address);
2324

llvm/include/llvm/DebugInfo/DWARF/DWARFCFIProgram.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,11 @@ class CFIProgram {
106106
};
107107

108108
/// Get the OperandType as a "const char *".
109-
static const char *operandTypeString(OperandType OT);
109+
LLVM_ABI static const char *operandTypeString(OperandType OT);
110110

111111
/// Retrieve the array describing the types of operands according to the enum
112112
/// above. This is indexed by opcode.
113-
static ArrayRef<OperandType[MaxOperands]> getOperandTypes();
113+
LLVM_ABI static ArrayRef<OperandType[MaxOperands]> getOperandTypes();
114114

115115
private:
116116
std::vector<Instruction> Instructions;

llvm/include/llvm/DebugInfo/DWARF/DWARFExpression.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ class DWARFExpressionPrinter {
186186
/// \param E to be printed
187187
/// \param OS to this stream
188188
/// \param GetNameForDWARFReg callback to return dwarf register name
189-
static void print(const DWARFExpression *E, raw_ostream &OS,
189+
LLVM_ABI static void print(const DWARFExpression *E, raw_ostream &OS,
190190
DIDumpOptions DumpOpts, DWARFUnit *U, bool IsEH = false);
191191

192192
/// Print the expression in a format intended to be compact and useful to a
@@ -199,7 +199,7 @@ class DWARFExpressionPrinter {
199199
/// \param GetNameForDWARFReg callback to return dwarf register name
200200
///
201201
/// \returns true if the expression was successfully printed
202-
static bool printCompact(const DWARFExpression *E, raw_ostream &OS,
202+
LLVM_ABI static bool printCompact(const DWARFExpression *E, raw_ostream &OS,
203203
std::function<StringRef(uint64_t RegNum, bool IsEH)>
204204
GetNameForDWARFReg = nullptr);
205205

@@ -211,7 +211,7 @@ class DWARFExpressionPrinter {
211211
/// \param Operands to the opcode
212212
///
213213
/// returns true if the Op was successfully printed
214-
static bool prettyPrintRegisterOp(DWARFUnit *U, raw_ostream &OS,
214+
LLVM_ABI static bool prettyPrintRegisterOp(DWARFUnit *U, raw_ostream &OS,
215215
DIDumpOptions DumpOpts, uint8_t Opcode,
216216
ArrayRef<uint64_t> Operands);
217217

llvm/include/llvm/DebugInfo/LogicalView/Core/LVSourceLanguage.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#ifndef LLVM_DEBUGINFO_LOGICALVIEW_CORE_LVSOURCELANGUAGE_H
1515
#define LLVM_DEBUGINFO_LOGICALVIEW_CORE_LVSOURCELANGUAGE_H
1616

17+
#include "llvm/Support/Compiler.h"
1718
#include "llvm/ADT/StringRef.h"
1819
#include "llvm/BinaryFormat/Dwarf.h"
1920
#include "llvm/DebugInfo/CodeView/CodeView.h"
@@ -52,7 +53,7 @@ struct LVSourceLanguage {
5253

5354
bool isValid() const { return Language != Invalid; }
5455
TaggedLanguage get() const { return Language; }
55-
StringRef getName() const;
56+
LLVM_ABI StringRef getName() const;
5657

5758
private:
5859
TaggedLanguage Language = Invalid;

0 commit comments

Comments
 (0)