From: Michael Buch Date: Mon, 13 Feb 2023 18:03:44 +0000 (+0000) Subject: Revert "[lldb][Test][NFC] TestExternalCtorDtorLookup: add more instantiations to... X-Git-Tag: upstream/17.0.6~17688 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8a57748804bd2247a8c0c5632af3364db58a087f;p=platform%2Fupstream%2Fllvm.git Revert "[lldb][Test][NFC] TestExternalCtorDtorLookup: add more instantiations to test linkage name is correct" This reverts commit 3c160d3051dc5d637bd35cfa673871338589ad8e. This patch depends on the reverted patch in https://reviews.llvm.org/D143652 Differential Revision: https://reviews.llvm.org/D143652 --- diff --git a/lldb/test/API/lang/cpp/external_ctor_dtor_lookup/Makefile b/lldb/test/API/lang/cpp/external_ctor_dtor_lookup/Makefile index 3e4cfc7..eba1547 100644 --- a/lldb/test/API/lang/cpp/external_ctor_dtor_lookup/Makefile +++ b/lldb/test/API/lang/cpp/external_ctor_dtor_lookup/Makefile @@ -1,3 +1,3 @@ -CXX_SOURCES := main.cpp lib.cpp +CXX_SOURCES := main.cpp include Makefile.rules diff --git a/lldb/test/API/lang/cpp/external_ctor_dtor_lookup/lib.cpp b/lldb/test/API/lang/cpp/external_ctor_dtor_lookup/lib.cpp deleted file mode 100644 index f1724b7..0000000 --- a/lldb/test/API/lang/cpp/external_ctor_dtor_lookup/lib.cpp +++ /dev/null @@ -1,3 +0,0 @@ -#include "lib.h" - -Wrapper getFooWrapper() { return {}; } diff --git a/lldb/test/API/lang/cpp/external_ctor_dtor_lookup/lib.h b/lldb/test/API/lang/cpp/external_ctor_dtor_lookup/lib.h index 1fee83f..9664068 100644 --- a/lldb/test/API/lang/cpp/external_ctor_dtor_lookup/lib.h +++ b/lldb/test/API/lang/cpp/external_ctor_dtor_lookup/lib.h @@ -8,8 +8,5 @@ public: [[gnu::abi_tag("test")]] ~Wrapper(){}; }; -struct Foo {}; - -Wrapper getFooWrapper(); - #endif // _H_IN + diff --git a/lldb/test/API/lang/cpp/external_ctor_dtor_lookup/main.cpp b/lldb/test/API/lang/cpp/external_ctor_dtor_lookup/main.cpp index e1caf02..3904646 100644 --- a/lldb/test/API/lang/cpp/external_ctor_dtor_lookup/main.cpp +++ b/lldb/test/API/lang/cpp/external_ctor_dtor_lookup/main.cpp @@ -1,5 +1,7 @@ #include "lib.h" +struct Foo {}; + struct Bar { Wrapper getWrapper() { return Wrapper(); } int sinkWrapper(Wrapper) { return -1; } @@ -7,10 +9,6 @@ struct Bar { int main() { Bar b; - Wrapper w1; - Wrapper w2; - Wrapper w3 = getFooWrapper(); - Wrapper w4; return b.sinkWrapper(b.getWrapper()); }