[llvm] c3530e7 - Revert "[test] Speculative fix for bots"
Arthur Eubanks via llvm-commits
llvm-commits at lists.llvm.org
Tue May 18 10:13:40 PDT 2021
Author: Arthur Eubanks
Date: 2021-05-18T10:12:51-07:00
New Revision: c3530e75cee121b665f3d960934dda00a23522ec
URL: https://github.com/llvm/llvm-project/commit/c3530e75cee121b665f3d960934dda00a23522ec
DIFF: https://github.com/llvm/llvm-project/commit/c3530e75cee121b665f3d960934dda00a23522ec.diff
LOG: Revert "[test] Speculative fix for bots"
This reverts commit 5c291482ec8bcd686044ebc0d4cffe7bf769521c.
unittests/Passes/CMakeFiles/PassesBindingsTests.dir/PassBuilderBindingsTest.cpp.o: In function `PassBuilderCTest::SetUp()':
PassBuilderBindingsTest.cpp:(.text._ZN16PassBuilderCTest5SetUpEv[_ZN16PassBuilderCTest5SetUpEv]+0x28): undefined reference to `LLVMInitializeARMTargetInfo'
Added:
Modified:
llvm/unittests/Passes/PassBuilderBindingsTest.cpp
Removed:
################################################################################
diff --git a/llvm/unittests/Passes/PassBuilderBindingsTest.cpp b/llvm/unittests/Passes/PassBuilderBindingsTest.cpp
index c55c882e6083c..39c1b89f90e13 100644
--- a/llvm/unittests/Passes/PassBuilderBindingsTest.cpp
+++ b/llvm/unittests/Passes/PassBuilderBindingsTest.cpp
@@ -15,13 +15,12 @@ using namespace llvm;
class PassBuilderCTest : public testing::Test {
void SetUp() override {
- LLVMInitializeAllTargetInfos();
+ LLVMInitializeNativeTarget();
char *Triple = LLVMGetDefaultTargetTriple();
char *Err;
LLVMTargetRef Target;
if (LLVMGetTargetFromTriple(Triple, &Target, &Err)) {
- FAIL() << "Failed to create target from default triple (" << Triple
- << "): " << Err;
+ FAIL() << "Failed to create target from default triple: " << Err;
}
TM = LLVMCreateTargetMachine(Target, Triple, "generic", "",
LLVMCodeGenLevelDefault, LLVMRelocDefault,
More information about the llvm-commits
mailing list