summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/IntrinsicLowering.cpp
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2019-12-27 18:07:03 -0800
committerFangrui Song <maskray@google.com>2019-12-27 18:09:22 -0800
commit044cc919f4bcc5e101b88589cc07463b20a38b4e (patch)
tree00802d54956df4f505a2985d3b483f64bc769d06 /llvm/lib/CodeGen/IntrinsicLowering.cpp
parentf7910496c83eb785c12cde3139f21b34cf72f78e (diff)
downloadbcm5719-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.cpp8
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!");
OpenPOWER on IntegriCloud