diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-08-07 20:50:09 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-08-07 20:50:09 +0000 |
commit | 86ec7bae4f2b1054b36799a4c69c26100571cb8e (patch) | |
tree | cd15517993251b3483698e78c52c7145b2b9e95b /llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp | |
parent | 15b803703449f4fa0183481b17173339fa9cfa81 (diff) | |
download | bcm5719-llvm-86ec7bae4f2b1054b36799a4c69c26100571cb8e.tar.gz bcm5719-llvm-86ec7bae4f2b1054b36799a4c69c26100571cb8e.zip |
MSVC warning fixes; patch by Stein Roger!
llvm-svn: 78405
Diffstat (limited to 'llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp')
-rw-r--r-- | llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp b/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp index 79948704ef1..68097fd1219 100644 --- a/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp +++ b/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp @@ -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); |