diff options
author | Patrick Wildt <patrick@cvs.openbsd.org> | 2019-01-27 17:11:38 +0000 |
---|---|---|
committer | Patrick Wildt <patrick@cvs.openbsd.org> | 2019-01-27 17:11:38 +0000 |
commit | c77e9465e8c432b44e9b2f3e6127d4c33bfa97af (patch) | |
tree | 323d619f30823f036b4404e3aebe0790574f21d7 /gnu/llvm/unittests | |
parent | 8715f261321ab0bc4a6bc7731281b563b74bda26 (diff) |
Tedu files that got removed in LLVM 7.0.1.
Diffstat (limited to 'gnu/llvm/unittests')
-rw-r--r-- | gnu/llvm/unittests/Support/DynamicLibrary/ExportedFuncs.cxx | 16 | ||||
-rw-r--r-- | gnu/llvm/unittests/Support/DynamicLibrary/PipSqueak.cxx | 49 |
2 files changed, 0 insertions, 65 deletions
diff --git a/gnu/llvm/unittests/Support/DynamicLibrary/ExportedFuncs.cxx b/gnu/llvm/unittests/Support/DynamicLibrary/ExportedFuncs.cxx deleted file mode 100644 index 97f190b0b9b..00000000000 --- a/gnu/llvm/unittests/Support/DynamicLibrary/ExportedFuncs.cxx +++ /dev/null @@ -1,16 +0,0 @@ -//===- llvm/unittest/Support/DynamicLibrary/DynamicLibraryLib.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; } diff --git a/gnu/llvm/unittests/Support/DynamicLibrary/PipSqueak.cxx b/gnu/llvm/unittests/Support/DynamicLibrary/PipSqueak.cxx deleted file mode 100644 index 375d72c0b53..00000000000 --- a/gnu/llvm/unittests/Support/DynamicLibrary/PipSqueak.cxx +++ /dev/null @@ -1,49 +0,0 @@ -//===- llvm/unittest/Support/DynamicLibrary/PipSqueak.cxx -----------------===// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// - -#include "PipSqueak.h" - -struct Global { - std::string *Str; - std::vector<std::string> *Vec; - Global() : Str(nullptr), Vec(nullptr) {} - ~Global() { - if (Str) { - if (Vec) - Vec->push_back(*Str); - *Str = "Global::~Global"; - } - } -}; - -static Global Glb; - -struct Local { - std::string &Str; - Local(std::string &S) : Str(S) { - Str = "Local::Local"; - if (Glb.Str && !Glb.Str->empty()) - Str += std::string("(") + *Glb.Str + std::string(")"); - } - ~Local() { Str = "Local::~Local"; } -}; - - -extern "C" PIPSQUEAK_EXPORT void SetStrings(std::string &GStr, - std::string &LStr) { - Glb.Str = &GStr; - static Local Lcl(LStr); -} - -extern "C" PIPSQUEAK_EXPORT void TestOrder(std::vector<std::string> &V) { - Glb.Vec = &V; -} - -#define PIPSQUEAK_TESTA_RETURN "LibCall" -#include "ExportedFuncs.cxx" |