VisualStudio project files updated. #include <algorithm> added to make VisualStudio happy. Also had to undefine setjmp because of #include <csetjmp> turning setjmp into _setjmp in VisualStudio.

llvm-svn: 49743
This commit is contained in:
Chuck Rose III 2008-04-15 21:27:11 +00:00
parent 7d6219f501
commit c6a47e8a79
3 changed files with 20 additions and 0 deletions

View File

@ -143,7 +143,22 @@ bool LowerInvoke::doInitialization(Module &M) {
Constant::getNullValue(PtrJBList),
"llvm.sjljeh.jblist", &M);
}
// VisualStudio defines setjmp as _setjmp via #include <csetjmp> / <setjmp.h>,
// so it looks like Intrinsic::_setjmp
#if defined(_MSC_VER) && defined(setjmp)
#define setjmp_undefined_for_visual_studio
#undef setjmp
#endif
SetJmpFn = Intrinsic::getDeclaration(&M, Intrinsic::setjmp);
#if defined(_MSC_VER) && defined(setjmp_undefined_for_visual_studio)
// let's return it to _setjmp state in case anyone ever needs it after this
// point under VisualStudio
#define setjmp _setjmp
#endif
LongJmpFn = Intrinsic::getDeclaration(&M, Intrinsic::longjmp);
}

View File

@ -21,6 +21,7 @@
#include "llvm/ADT/STLExtras.h"
#include "llvm/Support/Streams.h"
#include <set>
#include <algorithm>
using namespace llvm;
// runEnums - Print out enum values for all of the registers.

View File

@ -487,6 +487,10 @@
RelativePath="..\..\lib\Transforms\Scalar\LoopUnswitch.cpp"
>
</File>
<File
RelativePath="..\..\lib\Transforms\Scalar\MemCpyOptimizer.cpp"
>
</File>
<File
RelativePath="..\..\lib\Transforms\Scalar\PredicateSimplifier.cpp"
>