mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-30 17:25:21 +00:00
Get rid of pop_macro warnings on MSVC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114750 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -68,16 +68,19 @@ void IntrinsicEmitter::run(raw_ostream &OS) {
|
||||
|
||||
void IntrinsicEmitter::EmitPrefix(raw_ostream &OS) {
|
||||
OS << "// VisualStudio defines setjmp as _setjmp\n"
|
||||
"#if defined(_MSC_VER) && defined(setjmp)\n"
|
||||
"#if defined(_MSC_VER) && defined(setjmp) && \\\n"
|
||||
" !defined(setjmp_undefined_for_msvc)\n"
|
||||
"# pragma push_macro(\"setjmp\")\n"
|
||||
"# undef setjmp\n"
|
||||
"# define setjmp_undefined_for_msvc\n"
|
||||
"#endif\n\n";
|
||||
}
|
||||
|
||||
void IntrinsicEmitter::EmitSuffix(raw_ostream &OS) {
|
||||
OS << "#if defined(_MSC_VER)\n"
|
||||
OS << "#if defined(_MSC_VER) && defined(setjmp_undefined_for_msvc)\n"
|
||||
"// let's return it to _setjmp state\n"
|
||||
"# pragma pop_macro(\"setjmp\")\n"
|
||||
"# undef setjmp_undefined_for_msvc\n"
|
||||
"#endif\n\n";
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user