mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
move AnalyzeBytecodeFile out of ReaderWrappers.cpp into Analyzer.cpp. Now
lli doesn't link in Analyzer.cpp. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34020 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -255,21 +255,6 @@ Module *llvm::ParseBytecodeFile(const std::string &Filename,
|
||||
return M;
|
||||
}
|
||||
|
||||
// AnalyzeBytecodeFile - analyze one file
|
||||
Module* llvm::AnalyzeBytecodeFile(
|
||||
const std::string &Filename, ///< File to analyze
|
||||
BytecodeAnalysis& bca, ///< Statistical output
|
||||
BCDecompressor_t *BCDC,
|
||||
std::string *ErrMsg, ///< Error output
|
||||
std::ostream* output ///< Dump output
|
||||
) {
|
||||
BytecodeHandler* AH = createBytecodeAnalyzerHandler(bca,output);
|
||||
ModuleProvider* MP = getBytecodeModuleProvider(Filename, BCDC, ErrMsg, AH);
|
||||
if (!MP) return 0;
|
||||
Module *M = MP->releaseModule(ErrMsg);
|
||||
delete MP;
|
||||
return M;
|
||||
}
|
||||
|
||||
bool llvm::GetBytecodeDependentLibraries(const std::string &fname,
|
||||
Module::LibraryListType& deplibs,
|
||||
|
Reference in New Issue
Block a user