diff options
author | David Blaikie <dblaikie@gmail.com> | 2024-06-07 21:05:42 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2024-06-19 05:50:08 +0000 |
commit | 1c9a81b2bd91e8cd9baf742fa66650eefbaf552c (patch) | |
tree | 993d5f7f4454ce23bdd9570c6420808d29c4a068 /cross-project-tests | |
parent | 3c8f3b91d898cb3f76e1e430da98972cdf8a4a1c (diff) | |
download | llvm-1c9a81b2bd91e8cd9baf742fa66650eefbaf552c.zip llvm-1c9a81b2bd91e8cd9baf742fa66650eefbaf552c.tar.gz llvm-1c9a81b2bd91e8cd9baf742fa66650eefbaf552c.tar.bz2 |
Fix gdb pretty printers for libSupport
Remove the testing for std::optional - it was originally for
llvm::Optional, but now that that doesn't exist and we use
std::optional, testing for that pretty printer should live, wherever the
pretty printer lives, not here in LLVM.
And the PointerIntPair pretty printer bit rotted due to changes in
PointerIntPair, 875391728c11339c8a6cd3338bcaa5ec0ffc2496.
Diffstat (limited to 'cross-project-tests')
-rw-r--r-- | cross-project-tests/debuginfo-tests/llvm-prettyprinters/gdb/llvm-support.cpp | 4 | ||||
-rw-r--r-- | cross-project-tests/debuginfo-tests/llvm-prettyprinters/gdb/llvm-support.gdb | 8 |
2 files changed, 1 insertions, 11 deletions
diff --git a/cross-project-tests/debuginfo-tests/llvm-prettyprinters/gdb/llvm-support.cpp b/cross-project-tests/debuginfo-tests/llvm-prettyprinters/gdb/llvm-support.cpp index 8c5c5da..737d9bd3 100644 --- a/cross-project-tests/debuginfo-tests/llvm-prettyprinters/gdb/llvm-support.cpp +++ b/cross-project-tests/debuginfo-tests/llvm-prettyprinters/gdb/llvm-support.cpp @@ -19,8 +19,6 @@ llvm::DenseMap<int, int> DenseMap = {{4, 5}, {6, 7}}; llvm::StringMap<int> StringMap = {{"foo", 123}, {"bar", 456}}; llvm::Expected<int> ExpectedValue(8); llvm::Expected<int> ExpectedError(llvm::createStringError("")); -std::optional<int> OptionalValue(9); -std::optional<int> OptionalNone(std::nullopt); llvm::SmallVector<int, 5> SmallVector = {10, 11, 12}; llvm::SmallString<5> SmallString("foo"); llvm::StringRef StringRef = "bar"; @@ -69,7 +67,5 @@ int main() { dont_strip(MutableArrayRef); dont_strip(ExpectedValue); dont_strip(ExpectedError); - dont_strip(OptionalValue); - dont_strip(OptionalNone); return result; // Non-zero return value is OK. } diff --git a/cross-project-tests/debuginfo-tests/llvm-prettyprinters/gdb/llvm-support.gdb b/cross-project-tests/debuginfo-tests/llvm-prettyprinters/gdb/llvm-support.gdb index 6222ab8..de6738e 100644 --- a/cross-project-tests/debuginfo-tests/llvm-prettyprinters/gdb/llvm-support.gdb +++ b/cross-project-tests/debuginfo-tests/llvm-prettyprinters/gdb/llvm-support.gdb @@ -22,12 +22,6 @@ p ExpectedValue # CHECK: llvm::Expected is error p ExpectedError -# CHECK: llvm::Optional = {value = 9} -p OptionalValue - -# CHECK: llvm::Optional is not initialized -p OptionalNone - # CHECK: llvm::SmallVector of Size 3, Capacity 5 = {10, 11, 12} p SmallVector @@ -37,7 +31,7 @@ p SmallString # CHECK: "bar" p StringRef -# CHECK: "foobarbaz" +# CHECK: "{{foo|\(missing .*\)}}barbaz" p Twine # CHECK: llvm::StringMap with 2 elements = {["foo"] = 123, ["bar"] = 456} |