mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-04 21:30:49 +00:00
update for new api
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77788 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4a7bc1e5aa
commit
27a32604cc
@ -46,14 +46,14 @@ TEST(AsmStreamer, EmptyOutput) {
|
|||||||
|
|
||||||
TEST(AsmStreamer, Sections) {
|
TEST(AsmStreamer, Sections) {
|
||||||
StringAsmStreamer S;
|
StringAsmStreamer S;
|
||||||
MCSection *Sec0 = MCSection::Create("foo", S.getContext());
|
MCSection *Sec0 = MCSection::Create("foo", SectionKind(), S.getContext());
|
||||||
S.getStreamer().SwitchSection(Sec0);
|
S.getStreamer().SwitchSection(Sec0);
|
||||||
EXPECT_EQ(".section foo\n", S.getString());
|
EXPECT_EQ(".section foo\n", S.getString());
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(AsmStreamer, Values) {
|
TEST(AsmStreamer, Values) {
|
||||||
StringAsmStreamer S;
|
StringAsmStreamer S;
|
||||||
MCSection *Sec0 = MCSection::Create("foo", S.getContext());
|
MCSection *Sec0 = MCSection::Create("foo", SectionKind(), S.getContext());
|
||||||
MCSymbol *A = S.getContext().CreateSymbol("a");
|
MCSymbol *A = S.getContext().CreateSymbol("a");
|
||||||
MCSymbol *B = S.getContext().CreateSymbol("b");
|
MCSymbol *B = S.getContext().CreateSymbol("b");
|
||||||
S.getStreamer().SwitchSection(Sec0);
|
S.getStreamer().SwitchSection(Sec0);
|
||||||
@ -74,7 +74,7 @@ b:\n\
|
|||||||
|
|
||||||
TEST(AsmStreamer, Align) {
|
TEST(AsmStreamer, Align) {
|
||||||
StringAsmStreamer S;
|
StringAsmStreamer S;
|
||||||
MCSection *Sec0 = MCSection::Create("foo", S.getContext());
|
MCSection *Sec0 = MCSection::Create("foo", SectionKind(), S.getContext());
|
||||||
S.getStreamer().SwitchSection(Sec0);
|
S.getStreamer().SwitchSection(Sec0);
|
||||||
S.getStreamer().EmitValueToAlignment(4);
|
S.getStreamer().EmitValueToAlignment(4);
|
||||||
S.getStreamer().EmitValueToAlignment(4, /*Value=*/12, /*ValueSize=*/2);
|
S.getStreamer().EmitValueToAlignment(4, /*Value=*/12, /*ValueSize=*/2);
|
||||||
@ -88,7 +88,7 @@ TEST(AsmStreamer, Align) {
|
|||||||
|
|
||||||
TEST(AsmStreamer, Org) {
|
TEST(AsmStreamer, Org) {
|
||||||
StringAsmStreamer S;
|
StringAsmStreamer S;
|
||||||
MCSection *Sec0 = MCSection::Create("foo", S.getContext());
|
MCSection *Sec0 = MCSection::Create("foo", SectionKind(), S.getContext());
|
||||||
S.getStreamer().SwitchSection(Sec0);
|
S.getStreamer().SwitchSection(Sec0);
|
||||||
MCSymbol *A = S.getContext().CreateSymbol("a");
|
MCSymbol *A = S.getContext().CreateSymbol("a");
|
||||||
S.getStreamer().EmitLabel(A);
|
S.getStreamer().EmitLabel(A);
|
||||||
|
Loading…
Reference in New Issue
Block a user