[Bazel] Remove redundant gtest_main from codegen_tests, codegen_globalisel_tests, mi_tests (#135316)
For codegen_tests, codegen_globalisel_tests and mi_tests, they already
have their own `main` function defined, so there should be no need to
add `gtest_main` dependency for the main function...
- codegen_tests:
https://github.com/llvm/llvm-project/blob/main/llvm/unittests/CodeGen/TargetOptionsTest.cpp#L73
- codegen_globalisel_tests:
https://github.com/llvm/llvm-project/blob/main/llvm/unittests/CodeGen/GlobalISel/PatternMatchTest.cpp#L978
- mi_tests:
https://github.com/llvm/llvm-project/blob/main/llvm/unittests/MI/LiveIntervalTest.cpp#L933
diff --git a/utils/bazel/llvm-project-overlay/llvm/unittests/BUILD.bazel b/utils/bazel/llvm-project-overlay/llvm/unittests/BUILD.bazel
index 3b778fc..9752839 100644
--- a/utils/bazel/llvm-project-overlay/llvm/unittests/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/llvm/unittests/BUILD.bazel
@@ -174,7 +174,6 @@
"//llvm:Target",
"//llvm:TestingSupport",
"//third-party/unittest:gtest",
- "//third-party/unittest:gtest_main",
],
)
@@ -203,7 +202,6 @@
"//llvm:Support",
"//llvm:Target",
"//third-party/unittest:gtest",
- "//third-party/unittest:gtest_main",
],
)
@@ -501,7 +499,6 @@
"//llvm:Support",
"//llvm:Target",
"//third-party/unittest:gtest",
- "//third-party/unittest:gtest_main",
],
)