update for new api
[oota-llvm.git] / unittests / MC / AsmStreamerTest.cpp
index 3bf05cbb04a234ccdb4ed4466c1df45ba0ae818a..815c9b07c47bf09a1012d779fed0b43ddb03f193 100644 (file)
@@ -46,14 +46,14 @@ TEST(AsmStreamer, EmptyOutput) {
 
 TEST(AsmStreamer, Sections) {
   StringAsmStreamer S;
-  MCSection *Sec0 = MCSection::Create("foo", S.getContext());
+  MCSection *Sec0 = MCSection::Create("foo", SectionKind(), S.getContext());
   S.getStreamer().SwitchSection(Sec0);
   EXPECT_EQ(".section foo\n", S.getString());
 }
 
 TEST(AsmStreamer, Values) {
   StringAsmStreamer S;
-  MCSection *Sec0 = MCSection::Create("foo", S.getContext());
+  MCSection *Sec0 = MCSection::Create("foo", SectionKind(), S.getContext());
   MCSymbol *A = S.getContext().CreateSymbol("a");
   MCSymbol *B = S.getContext().CreateSymbol("b");
   S.getStreamer().SwitchSection(Sec0);
@@ -74,7 +74,7 @@ b:\n\
 
 TEST(AsmStreamer, Align) {
   StringAsmStreamer S;
-  MCSection *Sec0 = MCSection::Create("foo", S.getContext());
+  MCSection *Sec0 = MCSection::Create("foo", SectionKind(), S.getContext());
   S.getStreamer().SwitchSection(Sec0);
   S.getStreamer().EmitValueToAlignment(4);
   S.getStreamer().EmitValueToAlignment(4, /*Value=*/12, /*ValueSize=*/2);
@@ -88,7 +88,7 @@ TEST(AsmStreamer, Align) {
 
 TEST(AsmStreamer, Org) {
   StringAsmStreamer S;
-  MCSection *Sec0 = MCSection::Create("foo", S.getContext());
+  MCSection *Sec0 = MCSection::Create("foo", SectionKind(), S.getContext());
   S.getStreamer().SwitchSection(Sec0);
   MCSymbol *A = S.getContext().CreateSymbol("a");
   S.getStreamer().EmitLabel(A);