From c77e9465e8c432b44e9b2f3e6127d4c33bfa97af Mon Sep 17 00:00:00 2001 From: Patrick Wildt Date: Sun, 27 Jan 2019 17:11:38 +0000 Subject: Tedu files that got removed in LLVM 7.0.1. --- .../Support/DynamicLibrary/ExportedFuncs.cxx | 16 ------- .../unittests/Support/DynamicLibrary/PipSqueak.cxx | 49 ---------------------- 2 files changed, 65 deletions(-) delete mode 100644 gnu/llvm/unittests/Support/DynamicLibrary/ExportedFuncs.cxx delete mode 100644 gnu/llvm/unittests/Support/DynamicLibrary/PipSqueak.cxx (limited to 'gnu/llvm/unittests') 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 *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 &V) { - Glb.Vec = &V; -} - -#define PIPSQUEAK_TESTA_RETURN "LibCall" -#include "ExportedFuncs.cxx" -- cgit v1.2.3