#ifndef HALIDE_CPLUSPLUS_MANGLE_H
#define HALIDE_CPLUSPLUS_MANGLE_H

/** \file
 *
 * A simple function to get a C++ mangled function name for a function.
 */

#include <string>
#include "IR.h"
#include "Target.h"

namespace Halide {
namespace Internal {

/** Return the mangled C++ name for a function.
 * The target parameter is used to decide on the C++
 * ABI/mangling style to use.
 */
EXPORT std::string cplusplus_function_mangled_name(const std::string &name, const std::vector<std::string> &namespaces,
                                                   Type return_type, const std::vector<ExternFuncArgument> &args,
                                                   const Target &target);

EXPORT void cplusplus_mangle_test();

}

}

#endif

#ifndef HALIDE_CPLUSPLUS_MANGLE_H
#define HALIDE_CPLUSPLUS_MANGLE_H

/** \file
 *
 * A simple function to get a C++ mangled function name for a function.
 */

#include <string>
#include "IR.h"
#include "Target.h"

namespace Halide {
namespace Internal {

/** Return the mangled C++ name for a function.
 * The target parameter is used to decide on the C++
 * ABI/mangling style to use.
 */
std::string cplusplus_function_mangled_name(const std::string &name, const std::vector<std::string> &namespaces,
                                            Type return_type, const std::vector<ExternFuncArgument> &args,
                                            const Target &target);

void cplusplus_mangle_test();

}

}

#endif

--- 
+++ 
@@ -17,11 +17,11 @@
  * The target parameter is used to decide on the C++
  * ABI/mangling style to use.
  */
-std::string cplusplus_function_mangled_name(const std::string &name, const std::vector<std::string> &namespaces,
-                                            Type return_type, const std::vector<ExternFuncArgument> &args,
-                                            const Target &target);
+EXPORT std::string cplusplus_function_mangled_name(const std::string &name, const std::vector<std::string> &namespaces,
+                                                   Type return_type, const std::vector<ExternFuncArgument> &args,
+                                                   const Target &target);
 
-void cplusplus_mangle_test();
+EXPORT void cplusplus_mangle_test();
 
 }
 
Add some EXPORT qualifiers for msvc


Former-commit-id: d0593d880573052e6ae2790328a336a6a9865cc3