Skip to content

Commit 1917101

Browse files
committed
[llvm] manual fix-ups to llvm-c codemod of XRay library
1 parent cdb788e commit 1917101

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

llvm/include/llvm/XRay/InstrumentationMap.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class InstrumentationMap {
8484
FunctionAddressMap FunctionAddresses;
8585
FunctionAddressReverseMap FunctionIds;
8686

87-
friend Expected<InstrumentationMap> loadInstrumentationMap(StringRef);
87+
LLVM_ABI_FRIEND friend Expected<InstrumentationMap> loadInstrumentationMap(StringRef);
8888

8989
public:
9090
/// Provides a raw accessor to the unordered map of function addresses.

llvm/include/llvm/XRay/Trace.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
#ifndef LLVM_XRAY_TRACE_H
1313
#define LLVM_XRAY_TRACE_H
1414

15-
#include "llvm/Support/Compiler.h"
1615
#include <cstdint>
1716
#include <vector>
1817

1918
#include "llvm/ADT/StringRef.h"
19+
#include "llvm/Support/Compiler.h"
2020
#include "llvm/Support/DataExtractor.h"
2121
#include "llvm/Support/Error.h"
2222
#include "llvm/XRay/XRayRecord.h"
@@ -51,7 +51,7 @@ class Trace {
5151

5252
typedef std::vector<XRayRecord>::const_iterator citerator;
5353

54-
friend Expected<Trace> loadTrace(const DataExtractor &, bool);
54+
LLVM_ABI_FRIEND friend Expected<Trace> loadTrace(const DataExtractor &, bool);
5555

5656
public:
5757
using size_type = RecordVector::size_type;

0 commit comments

Comments
 (0)