diff options
author | Fangrui Song <maskray@google.com> | 2019-12-27 18:07:03 -0800 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2019-12-27 18:09:22 -0800 |
commit | 044cc919f4bcc5e101b88589cc07463b20a38b4e (patch) | |
tree | 00802d54956df4f505a2985d3b483f64bc769d06 /llvm/lib/CodeGen/IntrinsicLowering.cpp | |
parent | f7910496c83eb785c12cde3139f21b34cf72f78e (diff) | |
download | bcm5719-llvm-044cc919f4bcc5e101b88589cc07463b20a38b4e.tar.gz bcm5719-llvm-044cc919f4bcc5e101b88589cc07463b20a38b4e.zip |
Delete setjmp_undefined_for_msvc workaround after llvm.setjmp was removed
Diffstat (limited to 'llvm/lib/CodeGen/IntrinsicLowering.cpp')
-rw-r--r-- | llvm/lib/CodeGen/IntrinsicLowering.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/llvm/lib/CodeGen/IntrinsicLowering.cpp b/llvm/lib/CodeGen/IntrinsicLowering.cpp index 5f78b9ec92d..4461a235d6c 100644 --- a/llvm/lib/CodeGen/IntrinsicLowering.cpp +++ b/llvm/lib/CodeGen/IntrinsicLowering.cpp @@ -50,14 +50,6 @@ static CallInst *ReplaceCallWith(const char *NewFn, CallInst *CI, return NewCI; } -// VisualStudio defines setjmp as _setjmp -#if defined(_MSC_VER) && defined(setjmp) && \ - !defined(setjmp_undefined_for_msvc) -# pragma push_macro("setjmp") -# undef setjmp -# define setjmp_undefined_for_msvc -#endif - /// Emit the code to lower bswap of V before the specified instruction IP. static Value *LowerBSWAP(LLVMContext &Context, Value *V, Instruction *IP) { assert(V->getType()->isIntOrIntVectorTy() && "Can't bswap a non-integer type!"); |