Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions llvm/include/llvm/Support/SourceMgr.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,18 +103,18 @@ class SourceMgr {

public:
/// Create new source manager without support for include files.
SourceMgr();
LLVM_ABI SourceMgr();
/// Create new source manager with the capability of finding include files
/// via the provided file system.
explicit SourceMgr(IntrusiveRefCntPtr<vfs::FileSystem> FS);
SourceMgr(const SourceMgr &) = delete;
SourceMgr &operator=(const SourceMgr &) = delete;
SourceMgr(SourceMgr &&);
SourceMgr &operator=(SourceMgr &&);
~SourceMgr();
LLVM_ABI ~SourceMgr();

IntrusiveRefCntPtr<vfs::FileSystem> getVirtualFileSystem() const;
void setVirtualFileSystem(IntrusiveRefCntPtr<vfs::FileSystem> FS);
LLVM_ABI void setVirtualFileSystem(IntrusiveRefCntPtr<vfs::FileSystem> FS);

/// Return the include directories of this source manager.
ArrayRef<std::string> getIncludeDirs() const { return IncludeDirectories; }
Expand Down
5 changes: 3 additions & 2 deletions llvm/include/llvm/Support/VirtualFileSystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -1166,8 +1166,9 @@ class LLVM_ABI RedirectingFileSystem
/// Collect all pairs of <virtual path, real path> entries from the
/// \p VFS. This is used by the module dependency collector to forward
/// the entries into the reproducer output VFS YAML file.
void collectVFSEntries(RedirectingFileSystem &VFS,
SmallVectorImpl<YAMLVFSEntry> &CollectedEntries);
LLVM_ABI void
collectVFSEntries(RedirectingFileSystem &VFS,
SmallVectorImpl<YAMLVFSEntry> &CollectedEntries);

class YAMLVFSWriter {
std::vector<YAMLVFSEntry> Mappings;
Expand Down
4 changes: 2 additions & 2 deletions llvm/include/llvm/Support/VirtualOutputBackend.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace vfs {
/// If virtual functions are added here, also add them to \a
/// ProxyOutputBackend.
class OutputBackend : public RefCountedBase<OutputBackend> {
virtual void anchor();
LLVM_ABI virtual void anchor();

public:
/// Get a backend that points to the same destination as this one but that
Expand All @@ -37,7 +37,7 @@ class OutputBackend : public RefCountedBase<OutputBackend> {
/// have been customized).
///
/// Thread-safe.
Expected<OutputFile>
LLVM_ABI Expected<OutputFile>
createFile(const Twine &Path,
std::optional<OutputConfig> Config = std::nullopt);

Expand Down
4 changes: 2 additions & 2 deletions llvm/include/llvm/Support/VirtualOutputBackends.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,14 @@ class ProxyOutputBackend : public OutputBackend {

/// An output backend that creates files on disk, wrapping APIs in sys::fs.
class OnDiskOutputBackend : public OutputBackend {
void anchor() override;
LLVM_ABI void anchor() override;

protected:
IntrusiveRefCntPtr<OutputBackend> cloneImpl() const override {
return clone();
}

Expected<std::unique_ptr<OutputFileImpl>>
LLVM_ABI Expected<std::unique_ptr<OutputFileImpl>>
createFileImpl(StringRef Path, std::optional<OutputConfig> Config) override;

public:
Expand Down
4 changes: 2 additions & 2 deletions llvm/include/llvm/Support/VirtualOutputError.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class OutputError : public ErrorInfo<OutputError, ECError> {
}

// Used by ErrorInfo::classID.
static char ID;
LLVM_ABI static char ID;

OutputError(const Twine &OutputPath, std::error_code EC)
: ErrorInfo<OutputError, ECError>(EC), OutputPath(OutputPath.str()) {
Expand Down Expand Up @@ -104,7 +104,7 @@ class TempFileOutputError : public ErrorInfo<TempFileOutputError, OutputError> {
}

// Used by ErrorInfo::classID.
static char ID;
LLVM_ABI static char ID;

TempFileOutputError(const Twine &TempPath, const Twine &OutputPath,
std::error_code EC)
Expand Down
8 changes: 4 additions & 4 deletions llvm/include/llvm/Support/VirtualOutputFile.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,13 @@ class OutputFile {
///
/// If there's an open proxy from \a createProxy(), calls \a discard() to
/// clean up temporaries followed by \a report_fatal_error().
Error keep();
LLVM_ABI Error keep();

/// Discard an output, cleaning up any temporary state. Errors if clean-up
/// fails.
///
/// If it has already been closed, calls \a report_fatal_error().
Error discard();
LLVM_ABI Error discard();

/// Discard the output when destroying it if it's still open, sending the
/// result to \a Handler.
Expand All @@ -92,7 +92,7 @@ class OutputFile {
/// producer. Errors if there's already a proxy. The proxy must be deleted
/// before calling \a keep(). The proxy will crash if it's written to after
/// calling \a discard().
Expected<std::unique_ptr<raw_pwrite_stream>> createProxy();
LLVM_ABI Expected<std::unique_ptr<raw_pwrite_stream>> createProxy();

bool hasOpenProxy() const { return OpenProxy; }

Expand Down Expand Up @@ -126,7 +126,7 @@ class OutputFile {
private:
/// Destroy \a Impl. Reports fatal error if the file is open and there's no
/// handler from \a discardOnDestroy().
void destroy();
LLVM_ABI void destroy();
OutputFile &moveFrom(OutputFile &O) {
Path = std::move(O.Path);
Impl = std::move(O.Impl);
Expand Down
2 changes: 1 addition & 1 deletion llvm/include/llvm/Transforms/IPO/InferFunctionAttrs.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Module;
/// A pass which infers function attributes from the names and signatures of
/// function declarations in a module.
struct InferFunctionAttrsPass : PassInfoMixin<InferFunctionAttrsPass> {
PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM);
LLVM_ABI PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM);
};

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Module;
/// appends globals to llvm.compiler.used.
class SanitizerCoveragePass : public PassInfoMixin<SanitizerCoveragePass> {
public:
explicit SanitizerCoveragePass(
LLVM_ABI explicit SanitizerCoveragePass(
SanitizerCoverageOptions Options = SanitizerCoverageOptions(),
const std::vector<std::string> &AllowlistFiles =
std::vector<std::string>(),
Expand Down