diff options
Diffstat (limited to 'src/gallium/auxiliary/gallivm/lp_bld_debug.cpp')
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_debug.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp index 5d6d45d..621290f 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp +++ b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp @@ -39,6 +39,8 @@ #include <llvm/Support/Host.h> +#include <llvm/IR/Module.h> + #include <llvm/MC/MCDisassembler.h> #include <llvm/MC/MCAsmInfo.h> #include <llvm/MC/MCInst.h> @@ -111,6 +113,13 @@ raw_debug_ostream::write_impl(const char *Ptr, size_t Size) } +extern "C" const char * +lp_get_module_id(LLVMModuleRef module) +{ + return llvm::unwrap(module)->getModuleIdentifier().c_str(); +} + + /** * Same as LLVMDumpValue, but through our debugging channels. */ |