diff options
author | Frederich Munch <colsebas@hotmail.com> | 2017-04-24 03:33:30 +0000 |
---|---|---|
committer | Frederich Munch <colsebas@hotmail.com> | 2017-04-24 03:33:30 +0000 |
commit | b8c236a6e4fb62594fe4f6bf44cf928fb51bbbde (patch) | |
tree | ab652829805e82631cf264fc143eb46ad927f490 /llvm/unittests/Support/DynamicLibrary/PipSqueak.cxx | |
parent | 799259f32024f1824849a686a40c53feef4a3c83 (diff) | |
download | bcm5719-llvm-b8c236a6e4fb62594fe4f6bf44cf928fb51bbbde.tar.gz bcm5719-llvm-b8c236a6e4fb62594fe4f6bf44cf928fb51bbbde.zip |
Revert "Refactor DynamicLibrary so searching for a symbol will have a defined order.”
The changes are causing the i686-mingw32 build to fail.
This reverts commit r301153, and the changes for a separate warning on i686-mingw32 in r301155 and r301156.
llvm-svn: 301157
Diffstat (limited to 'llvm/unittests/Support/DynamicLibrary/PipSqueak.cxx')
-rw-r--r-- | llvm/unittests/Support/DynamicLibrary/PipSqueak.cxx | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/llvm/unittests/Support/DynamicLibrary/PipSqueak.cxx b/llvm/unittests/Support/DynamicLibrary/PipSqueak.cxx deleted file mode 100644 index 1de85236a88..00000000000 --- a/llvm/unittests/Support/DynamicLibrary/PipSqueak.cxx +++ /dev/null @@ -1,36 +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" -#include <string> - -struct Global { - std::string *Str; - Global() : Str(nullptr) {} - ~Global() { - if (Str) - *Str = "Global::~Global"; - } -}; - -struct Local { - std::string &Str; - Local(std::string &S) : Str(S) { Str = "Local::Local"; } - ~Local() { Str = "Local::~Local"; } -}; - -static Global Glb; - -extern "C" PIPSQUEAK_EXPORT void SetStrings(std::string &GStr, - std::string &LStr) { - static Local Lcl(LStr); - Glb.Str = &GStr; -} - -extern "C" PIPSQUEAK_EXPORT const char *TestA() { return "LibCall"; } |