From 8a953299237b84c666f71b59ef769563273565bb Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Tue, 15 May 2018 16:30:30 +0000 Subject: Rename three cxx files in unittests to cpp. LLVM uses cpp as its C++ file extension, these are the only three cxx file in the monorepo. These files apparently were called to escape a CMake check -- use the LLVM_OPTIONAL_SOURCES mechanism that's meant as an escape for this case instead. No intended behavior change. https://reviews.llvm.org/D46843 llvm-svn: 332368 --- llvm/unittests/Support/DynamicLibrary/ExportedFuncs.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 llvm/unittests/Support/DynamicLibrary/ExportedFuncs.cpp (limited to 'llvm/unittests/Support/DynamicLibrary/ExportedFuncs.cpp') diff --git a/llvm/unittests/Support/DynamicLibrary/ExportedFuncs.cpp b/llvm/unittests/Support/DynamicLibrary/ExportedFuncs.cpp new file mode 100644 index 00000000000..370c8cb471d --- /dev/null +++ b/llvm/unittests/Support/DynamicLibrary/ExportedFuncs.cpp @@ -0,0 +1,16 @@ +//===- llvm/unittest/Support/DynamicLibrary/ExportedFuncs.cpp -------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +#include "PipSqueak.h" + +#ifndef PIPSQUEAK_TESTA_RETURN +#define PIPSQUEAK_TESTA_RETURN "ProcessCall" +#endif + +extern "C" PIPSQUEAK_EXPORT const char *TestA() { return PIPSQUEAK_TESTA_RETURN; } -- cgit v1.2.3