summaryrefslogtreecommitdiff
path: root/include/llvm/Object/ModuleSymbolTable.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Object/ModuleSymbolTable.h')
-rw-r--r--include/llvm/Object/ModuleSymbolTable.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/llvm/Object/ModuleSymbolTable.h b/include/llvm/Object/ModuleSymbolTable.h
index 9e93228853884..c3cbc27998e5a 100644
--- a/include/llvm/Object/ModuleSymbolTable.h
+++ b/include/llvm/Object/ModuleSymbolTable.h
@@ -57,6 +57,15 @@ public:
static void CollectAsmSymbols(
const Module &M,
function_ref<void(StringRef, object::BasicSymbolRef::Flags)> AsmSymbol);
+
+ /// Parse inline ASM and collect the symvers directives that are defined in
+ /// the current module.
+ ///
+ /// For each found symbol, call \p AsmSymver with the name of the symbol and
+ /// its alias.
+ static void
+ CollectAsmSymvers(const Module &M,
+ function_ref<void(StringRef, StringRef)> AsmSymver);
};
} // end namespace llvm