summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/MC/AsmStreamerTest.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-06-24 17:00:42 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-06-24 17:00:42 +0000
commitf782ebc0cb384db347cc16d2b9063c4979e09aa1 (patch)
treee33cf7f07096133ab3615086ef9b507c6930c09f /llvm/unittests/MC/AsmStreamerTest.cpp
parent6e9e4f3436244c14fb204e3bdd2d0d69eab1433e (diff)
downloadbcm5719-llvm-f782ebc0cb384db347cc16d2b9063c4979e09aa1.tar.gz
bcm5719-llvm-f782ebc0cb384db347cc16d2b9063c4979e09aa1.zip
We decided to not worry about Atoms for now, it should be straightforward to
reintroduce them later. Also, don't require MCSection* when creating a symbol. llvm-svn: 74081
Diffstat (limited to 'llvm/unittests/MC/AsmStreamerTest.cpp')
-rw-r--r--llvm/unittests/MC/AsmStreamerTest.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/unittests/MC/AsmStreamerTest.cpp b/llvm/unittests/MC/AsmStreamerTest.cpp
index d9733010743..76da23ba544 100644
--- a/llvm/unittests/MC/AsmStreamerTest.cpp
+++ b/llvm/unittests/MC/AsmStreamerTest.cpp
@@ -53,10 +53,8 @@ TEST(AsmStreamer, Sections) {
TEST(AsmStreamer, Values) {
StringAsmStreamer S;
MCSection *Sec0 = S.getContext().GetSection("foo");
- MCSymbol *A = S.getContext().CreateSymbol(S.getContext().CreateAtom(Sec0),
- "a");
- MCSymbol *B = S.getContext().CreateSymbol(S.getContext().CreateAtom(Sec0),
- "b");
+ MCSymbol *A = S.getContext().CreateSymbol("a");
+ MCSymbol *B = S.getContext().CreateSymbol("b");
S.getStreamer().SwitchSection(Sec0);
S.getStreamer().EmitLabel(A);
S.getStreamer().EmitLabel(B);
OpenPOWER on IntegriCloud