mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 22:24:07 +00:00
MSVC warning fixes; patch by Stein Roger!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78405 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -291,6 +291,12 @@ GenericValue Interpreter::callExternalFunction(Function *F,
|
||||
//===----------------------------------------------------------------------===//
|
||||
// Functions "exported" to the running application...
|
||||
//
|
||||
|
||||
// Visual Studio warns about returning GenericValue in extern "C" linkage
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(disable : 4190)
|
||||
#endif
|
||||
|
||||
extern "C" { // Don't add C++ manglings to llvm mangling :)
|
||||
|
||||
// void atexit(Function*)
|
||||
@ -539,6 +545,11 @@ GenericValue lle_X_fprintf(const FunctionType *FT,
|
||||
|
||||
} // End extern "C"
|
||||
|
||||
// Done with externals; turn the warning back on
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(default: 4190)
|
||||
#endif
|
||||
|
||||
|
||||
void Interpreter::initializeExternalFunctions() {
|
||||
sys::ScopedLock Writer(*FunctionsLock);
|
||||
|
Reference in New Issue
Block a user