projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3333e66
)
Test that a landingpad gets the name provided when it was created (see commit
author
Duncan Sands
<baldrick@free.fr>
Fri, 21 Dec 2012 12:03:03 +0000
(12:03 +0000)
committer
Duncan Sands
<baldrick@free.fr>
Fri, 21 Dec 2012 12:03:03 +0000
(12:03 +0000)
170318).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170886
91177308
-0d34-0410-b5e6-
96231b3b80d8
unittests/VMCore/IRBuilderTest.cpp
patch
|
blob
|
history
diff --git
a/unittests/VMCore/IRBuilderTest.cpp
b/unittests/VMCore/IRBuilderTest.cpp
index d1d59c71eb0016a3e2a4b053d51b538cf3b6f44f..900e331cbbd8cf8ab54acbc11c0885a1b132ef9a 100644
(file)
--- a/
unittests/VMCore/IRBuilderTest.cpp
+++ b/
unittests/VMCore/IRBuilderTest.cpp
@@
-99,6
+99,13
@@
TEST_F(IRBuilderTest, CreateCondBr) {
EXPECT_EQ(Weights, TI->getMetadata(LLVMContext::MD_prof));
}
+TEST_F(IRBuilderTest, LandingPadName) {
+ IRBuilder<> Builder(BB);
+ LandingPadInst *LP = Builder.CreateLandingPad(Builder.getInt32Ty(),
+ Builder.getInt32(0), 0, "LP");
+ EXPECT_EQ(LP->getName(), "LP");
+}
+
TEST_F(IRBuilderTest, GetIntTy) {
IRBuilder<> Builder(BB);
IntegerType *Ty1 = Builder.getInt1Ty();