Port succesful

Anton Korobeynikov pravi:

Hello, Ziga.
  

VCPP throws a warning that class is previously declared as struct. Either it must be struct everywhere or class everywhere.
Declaration uses struct, while the definition uses class.
    

Nice! However it will be better to do the opposite: have it struct
everywhere. I'll fix this.
  

I think VCPP had some problems with it this. Otherwise, all methods declarations are in one line, i don't know why this one woudn't be:)
    

:slight_smile: LLVM source files has fixed width of no more, than 80 cols. That's
why the line was broken. Could you please check, whether your patch for
this is necessary?

I tried rebuilding and found out that patch for this is not necesary. So feel free to toss it away.

Ok, I am sending the logs for all main projects. All others have minumum to no warnings.
    

Ok.

I tried to build bugpoint and I got this linker errors:

BugDriver.obj : error LNK2019: unresolved external symbol "public: bool __thiscall llvm::BugDriver::runManyPasses(class std::vector<class llvm::PassInfo const *,class std::allocator<class llvm::PassInfo const *> > const &)" (?runManyPasses@BugDriver@llvm@@QAE_NABV?$vector@PBVPassInfo@llvm@@V?$allocator@PBVPassInfo@llvm@@@std@@@std@@@Z) referenced in function "public: bool __thiscall llvm::BugDriver::run(void)" (?run@BugDriver@llvm@@QAE_NXZ)
bugpoint.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall llvm::CallTargetFinder::runOnModule(class llvm::Module &)" (?runOnModule@CallTargetFinder@llvm@@UAE_NAAVModule@2@@Z)
bugpoint.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall llvm::CallTargetFinder::getAnalysisUsage(class llvm::AnalysisUsage &)const " (?getAnalysisUsage@CallTargetFinder@llvm@@UBEXAAVAnalysisUsage@2@@Z)
bugpoint.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall llvm::CallTargetFinder::print(class std::basic_ostream<char,struct std::char_traits<char> > &,class llvm::Module const *)const " (?print@CallTargetFinder@llvm@@UBEXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@PBVModule@2@@Z)
ExecutionDriver.obj : error LNK2019: unresolved external symbol "public: static class llvm::GCC * __cdecl llvm::GCC::create(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &)" (?create@GCC@llvm@@SAPAV12@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AAV34@@Z) referenced in function "private: bool __thiscall llvm::BugDriver::initializeExecutionEnvironment(void)" (?initializeExecutionEnvironment@BugDriver@llvm@@AAE_NXZ)
ExecutionDriver.obj : error LNK2019: unresolved external symbol "public: static class llvm::AbstractInterpreter * __cdecl llvm::AbstractInterpreter::createLLI(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &,class std::vector<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > const *)" (?createLLI@AbstractInterpreter@llvm@@SAPAV12@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AAV34@PBV?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@4@@Z) referenced in function "private: bool __thiscall llvm::BugDriver::initializeExecutionEnvironment(void)" (?initializeExecutionEnvironment@BugDriver@llvm@@AAE_NXZ)
ExecutionDriver.obj : error LNK2019: unresolved external symbol "public: static class llvm::LLC * __cdecl llvm::AbstractInterpreter::createLLC(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &,class std::vector<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > const *)" (?createLLC@AbstractInterpreter@llvm@@SAPAVLLC@2@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AAV45@PBV?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@5@@Z) referenced in function "private: bool __thiscall llvm::BugDriver::initializeExecutionEnvironment(void)" (?initializeExecutionEnvironment@BugDriver@llvm@@AAE_NXZ)
ExecutionDriver.obj : error LNK2019: unresolved external symbol "public: static class llvm::AbstractInterpreter * __cdecl llvm::AbstractInterpreter::createJIT(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &,class std::vector<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > const *)" (?createJIT@AbstractInterpreter@llvm@@SAPAV12@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AAV34@PBV?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@4@@Z) referenced in function "private: bool __thiscall llvm::BugDriver::initializeExecutionEnvironment(void)" (?initializeExecutionEnvironment@BugDriver@llvm@@AAE_NXZ)
ExecutionDriver.obj : error LNK2019: unresolved external symbol "public: static class llvm::CBE * __cdecl llvm::AbstractInterpreter::createCBE(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &,class std::vector<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > const *)" (?createCBE@AbstractInterpreter@llvm@@SAPAVCBE@2@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AAV45@PBV?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@5@@Z) referenced in function "private: bool __thiscall llvm::BugDriver::initializeExecutionEnvironment(void)" (?initializeExecutionEnvironment@BugDriver@llvm@@AAE_NXZ)
ExecutionDriver.obj : error LNK2019: unresolved external symbol "public: int __thiscall llvm::GCC::MakeSharedObject(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,enum llvm::GCC::FileType,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &,class std::vector<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > const &)" (?MakeSharedObject@GCC@llvm@@QAEHABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@W4FileType@12@AAV34@ABV?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@4@@Z) referenced in function "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall llvm::BugDriver::compileSharedObject(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?compileSharedObject@BugDriver@llvm@@QAE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABV34@@Z)
E:\llvm\llvm\win32\Debug/bugpoint.exe : fatal error LNK1120: 10 unresolved externals

What I am forgeting to include into build, and is bugpoint GCC based (since it needs llvm::GCC..)

Regards,
®iga