Diekelman, Brian P CTR SAF/FMP (AFFSO)
2009-Apr-01 14:20 UTC
[LLVMdev] Visual Studio 2005/2008 ClangDiagnosticsEmitter Patch
I'm in the process of trying to build LLVM and clang in Visual Studio 2008. Building trunk of LLVM and clang fails because of an VC STL issue: http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?Fee dbackID=328343 Here's a patch that allows tablegen to compile: Index: TableGen/ClangDiagnosticsEmitter.cpp ==================================================================--- TableGen/ClangDiagnosticsEmitter.cpp (revision 68202) +++ TableGen/ClangDiagnosticsEmitter.cpp (working copy) @@ -135,7 +135,7 @@ namespace { struct VISIBILITY_HIDDEN CompareOptName { - bool operator()(const Record* A, const Record* B) { + bool operator()(const Record* A, const Record* B) const { return getOptName(A) < getOptName(B); } };
Ted Kremenek
2009-Apr-01 18:24 UTC
[LLVMdev] Visual Studio 2005/2008 ClangDiagnosticsEmitter Patch
Applied! Thanks! On Apr 1, 2009, at 7:20 AM, Diekelman, Brian P CTR SAF/FMP (AFFSO) wrote:> I'm in the process of trying to build LLVM and clang in Visual Studio > 2008. > > Building trunk of LLVM and clang fails because of an VC STL issue: > http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?Fee > dbackID=328343 > > > Here's a patch that allows tablegen to compile: > > Index: TableGen/ClangDiagnosticsEmitter.cpp > ==================================================================> --- TableGen/ClangDiagnosticsEmitter.cpp (revision 68202) > +++ TableGen/ClangDiagnosticsEmitter.cpp (working copy) > @@ -135,7 +135,7 @@ > > namespace { > struct VISIBILITY_HIDDEN CompareOptName { > - bool operator()(const Record* A, const Record* B) { > + bool operator()(const Record* A, const Record* B) const { > return getOptName(A) < getOptName(B); > } > }; > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev