diff options
Diffstat (limited to 'tools/llvmc/CompilerDriver.cpp')
-rw-r--r-- | tools/llvmc/CompilerDriver.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/llvmc/CompilerDriver.cpp b/tools/llvmc/CompilerDriver.cpp index 055a4f4a32..a076a46525 100644 --- a/tools/llvmc/CompilerDriver.cpp +++ b/tools/llvmc/CompilerDriver.cpp @@ -62,6 +62,23 @@ void DumpConfigData(CompilerDriver::ConfigData* cd, const std::string& type ){ DumpAction(&cd->Linker); } +static bool GetBytecodeDependentLibraries(const std::string &fname, + Module::LibraryListType& deplibs, + BCDecompressor_t *BCDC, + std::string* ErrMsg) { + ModuleProvider* MP = getBytecodeModuleProvider(fname, BCDC, ErrMsg); + if (!MP) { + deplibs.clear(); + return true; + } + Module* M = MP->releaseModule(ErrMsg); + deplibs = M->getLibraries(); + delete M; + delete MP; + return false; +} + + class CompilerDriverImpl : public CompilerDriver { /// @name Constructors /// @{ |