[llvm] llvm: Add LLVM_ABI annotations in AsmParserContext (PR #176789)
Fabrice de Gans via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 19 09:58:49 PST 2026
https://github.com/Steelskin created https://github.com/llvm/llvm-project/pull/176789
This is needed to build LLVM as a DLL on Windows.
This effort is tracked in #109483.
>From 27831ba17de2acfc99758a299c51ab878daab1ab Mon Sep 17 00:00:00 2001
From: Fabrice de Gans <fabrice at thebrowser.company>
Date: Mon, 19 Jan 2026 17:01:33 +0000
Subject: [PATCH] llvm: Add LLVM_ABI annotations in AsmParserContext
This is needed to build LLVM as a DLL on Windows.
This effort is tracked in #109483.
---
llvm/include/llvm/AsmParser/AsmParserContext.h | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/llvm/include/llvm/AsmParser/AsmParserContext.h b/llvm/include/llvm/AsmParser/AsmParserContext.h
index 8f7823a9ae07c..eb14bd7e94feb 100644
--- a/llvm/include/llvm/AsmParser/AsmParserContext.h
+++ b/llvm/include/llvm/AsmParser/AsmParserContext.h
@@ -64,27 +64,27 @@ class AsmParserContext {
/// Get the function at the requested location range.
/// If no single function occupies the queried range, or the record is
/// missing, a nullptr is returned.
- Function *getFunctionAtLocation(const FileLocRange &) const;
+ LLVM_ABI Function *getFunctionAtLocation(const FileLocRange &) const;
/// Get the function at the requested location.
/// If no function occupies the queried location, or the record is missing, a
/// nullptr is returned.
- Function *getFunctionAtLocation(const FileLoc &) const;
+ LLVM_ABI Function *getFunctionAtLocation(const FileLoc &) const;
/// Get the block at the requested location range.
/// If no single block occupies the queried range, or the record is missing, a
/// nullptr is returned.
- BasicBlock *getBlockAtLocation(const FileLocRange &) const;
+ LLVM_ABI BasicBlock *getBlockAtLocation(const FileLocRange &) const;
/// Get the block at the requested location.
/// If no block occupies the queried location, or the record is missing, a
/// nullptr is returned.
- BasicBlock *getBlockAtLocation(const FileLoc &) const;
+ LLVM_ABI BasicBlock *getBlockAtLocation(const FileLoc &) const;
/// Get the instruction at the requested location range.
/// If no single instruction occupies the queried range, or the record is
/// missing, a nullptr is returned.
- Instruction *getInstructionAtLocation(const FileLocRange &) const;
+ LLVM_ABI Instruction *getInstructionAtLocation(const FileLocRange &) const;
/// Get the instruction at the requested location.
/// If no instruction occupies the queried location, or the record is missing,
/// a nullptr is returned.
- Instruction *getInstructionAtLocation(const FileLoc &) const;
+ LLVM_ABI Instruction *getInstructionAtLocation(const FileLoc &) const;
bool addFunctionLocation(Function *, const FileLocRange &);
bool addBlockLocation(BasicBlock *, const FileLocRange &);
bool addInstructionLocation(Instruction *, const FileLocRange &);
More information about the llvm-commits
mailing list