aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Object/IRObjectFile.h
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2016-07-23 20:41:05 +0000
committerDimitry Andric <dim@FreeBSD.org>2016-07-23 20:41:05 +0000
commit01095a5d43bbfde13731688ddcf6048ebb8b7721 (patch)
tree4def12e759965de927d963ac65840d663ef9d1ea /include/llvm/Object/IRObjectFile.h
parentf0f4822ed4b66e3579e92a89f368f8fb860e218e (diff)
Notes
Diffstat (limited to 'include/llvm/Object/IRObjectFile.h')
-rw-r--r--include/llvm/Object/IRObjectFile.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/llvm/Object/IRObjectFile.h b/include/llvm/Object/IRObjectFile.h
index ef655287c34c6..9fe011e17d627 100644
--- a/include/llvm/Object/IRObjectFile.h
+++ b/include/llvm/Object/IRObjectFile.h
@@ -20,6 +20,7 @@ namespace llvm {
class Mangler;
class Module;
class GlobalValue;
+class Triple;
namespace object {
class ObjectFile;
@@ -59,6 +60,15 @@ public:
/// error code if not found.
static ErrorOr<MemoryBufferRef> findBitcodeInObject(const ObjectFile &Obj);
+ /// Parse inline ASM and collect the symbols that are not defined in
+ /// the current module.
+ ///
+ /// For each found symbol, call \p AsmUndefinedRefs with the name of the
+ /// symbol found and the associated flags.
+ static void CollectAsmUndefinedRefs(
+ const Triple &TheTriple, StringRef InlineAsm,
+ function_ref<void(StringRef, BasicSymbolRef::Flags)> AsmUndefinedRefs);
+
/// \brief Finds and returns bitcode in the given memory buffer (which may
/// be either a bitcode file or a native object file with embedded bitcode),
/// or an error code if not found.