diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-06-24 17:00:42 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-06-24 17:00:42 +0000 |
commit | 71d259bc4be4f5c7a8a30c6be8da105074ff805a (patch) | |
tree | b0ae8bb92b558364d2f86fe249cf3b12dfc19ada /unittests | |
parent | d814b2150950114a44b607c90ea7a0725c40a8e6 (diff) | |
download | external_llvm-71d259bc4be4f5c7a8a30c6be8da105074ff805a.zip external_llvm-71d259bc4be4f5c7a8a30c6be8da105074ff805a.tar.gz external_llvm-71d259bc4be4f5c7a8a30c6be8da105074ff805a.tar.bz2 |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74081 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r-- | unittests/MC/AsmStreamerTest.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/unittests/MC/AsmStreamerTest.cpp b/unittests/MC/AsmStreamerTest.cpp index d973301..76da23b 100644 --- a/unittests/MC/AsmStreamerTest.cpp +++ b/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); |