aboutsummaryrefslogtreecommitdiffstats
path: root/unittests
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-01 18:35:49 +0000
committerChris Lattner <sabre@nondot.org>2009-08-01 18:35:49 +0000
commit27a32604cc38db2e6903b8a23516cd0bdb5096e5 (patch)
tree411a8ef14be6fc08134ec1421bb73db878ae1a1a /unittests
parent4a7bc1e5aafbb543a9a535bce54fc62d18723b35 (diff)
downloadexternal_llvm-27a32604cc38db2e6903b8a23516cd0bdb5096e5.zip
external_llvm-27a32604cc38db2e6903b8a23516cd0bdb5096e5.tar.gz
external_llvm-27a32604cc38db2e6903b8a23516cd0bdb5096e5.tar.bz2
update for new api
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77788 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r--unittests/MC/AsmStreamerTest.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/unittests/MC/AsmStreamerTest.cpp b/unittests/MC/AsmStreamerTest.cpp
index 3bf05cb..815c9b0 100644
--- a/unittests/MC/AsmStreamerTest.cpp
+++ b/unittests/MC/AsmStreamerTest.cpp
@@ -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);