mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-23 01:24:30 +00:00
While in GlobalValue fix the function(s) that don't follow the
naming convention and update users. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237461 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -75,7 +75,7 @@ TEST(BitReaderTest, DematerializeFunctionPreservesLinkageType) {
|
||||
GlobalValue::InternalLinkage);
|
||||
|
||||
// Check that the linkage type is preserved after dematerialization.
|
||||
M->getFunction("func")->Dematerialize();
|
||||
M->getFunction("func")->dematerialize();
|
||||
EXPECT_TRUE(M->getFunction("func")->empty());
|
||||
EXPECT_TRUE(M->getFunction("func")->getLinkage() ==
|
||||
GlobalValue::InternalLinkage);
|
||||
@ -160,7 +160,7 @@ TEST(BitReaderTest, MaterializeFunctionsForBlockAddr) { // PR11677
|
||||
EXPECT_FALSE(verifyModule(*M, &dbgs()));
|
||||
|
||||
// Try (and fail) to dematerialize @func.
|
||||
M->getFunction("func")->Dematerialize();
|
||||
M->getFunction("func")->dematerialize();
|
||||
EXPECT_FALSE(M->getFunction("func")->empty());
|
||||
}
|
||||
|
||||
@ -191,7 +191,7 @@ TEST(BitReaderTest, MaterializeFunctionsForBlockAddrInFunctionBefore) {
|
||||
EXPECT_FALSE(verifyModule(*M, &dbgs()));
|
||||
|
||||
// Try (and fail) to dematerialize @func.
|
||||
M->getFunction("func")->Dematerialize();
|
||||
M->getFunction("func")->dematerialize();
|
||||
EXPECT_FALSE(M->getFunction("func")->empty());
|
||||
EXPECT_FALSE(verifyModule(*M, &dbgs()));
|
||||
}
|
||||
@ -223,7 +223,7 @@ TEST(BitReaderTest, MaterializeFunctionsForBlockAddrInFunctionAfter) {
|
||||
EXPECT_FALSE(verifyModule(*M, &dbgs()));
|
||||
|
||||
// Try (and fail) to dematerialize @func.
|
||||
M->getFunction("func")->Dematerialize();
|
||||
M->getFunction("func")->dematerialize();
|
||||
EXPECT_FALSE(M->getFunction("func")->empty());
|
||||
EXPECT_FALSE(verifyModule(*M, &dbgs()));
|
||||
}
|
||||
|
Reference in New Issue
Block a user