mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 02:33:33 +00:00
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49743 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
94bef327aa
commit
cc51c31953
@ -143,7 +143,22 @@ bool LowerInvoke::doInitialization(Module &M) {
|
|||||||
Constant::getNullValue(PtrJBList),
|
Constant::getNullValue(PtrJBList),
|
||||||
"llvm.sjljeh.jblist", &M);
|
"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);
|
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);
|
LongJmpFn = Intrinsic::getDeclaration(&M, Intrinsic::longjmp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
#include "llvm/ADT/STLExtras.h"
|
#include "llvm/ADT/STLExtras.h"
|
||||||
#include "llvm/Support/Streams.h"
|
#include "llvm/Support/Streams.h"
|
||||||
#include <set>
|
#include <set>
|
||||||
|
#include <algorithm>
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
// runEnums - Print out enum values for all of the registers.
|
// runEnums - Print out enum values for all of the registers.
|
||||||
|
@ -487,6 +487,10 @@
|
|||||||
RelativePath="..\..\lib\Transforms\Scalar\LoopUnswitch.cpp"
|
RelativePath="..\..\lib\Transforms\Scalar\LoopUnswitch.cpp"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\lib\Transforms\Scalar\MemCpyOptimizer.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\..\lib\Transforms\Scalar\PredicateSimplifier.cpp"
|
RelativePath="..\..\lib\Transforms\Scalar\PredicateSimplifier.cpp"
|
||||||
>
|
>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user