[llvm-commits] [llvm] r77788 - /llvm/trunk/unittests/MC/AsmStreamerTest.cpp
Chris Lattner
sabre at nondot.org
Sat Aug 1 11:35:50 PDT 2009
Author: lattner
Date: Sat Aug 1 13:35:49 2009
New Revision: 77788
URL: http://llvm.org/viewvc/llvm-project?rev=77788&view=rev
Log:
update for new api
Modified:
llvm/trunk/unittests/MC/AsmStreamerTest.cpp
Modified: llvm/trunk/unittests/MC/AsmStreamerTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/MC/AsmStreamerTest.cpp?rev=77788&r1=77787&r2=77788&view=diff
==============================================================================
--- llvm/trunk/unittests/MC/AsmStreamerTest.cpp (original)
+++ llvm/trunk/unittests/MC/AsmStreamerTest.cpp Sat Aug 1 13:35:49 2009
@@ -46,14 +46,14 @@
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 @@
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, 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);
More information about the llvm-commits
mailing list