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 /include/llvm/MC/MCSymbol.h | |
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 'include/llvm/MC/MCSymbol.h')
-rw-r--r-- | include/llvm/MC/MCSymbol.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/include/llvm/MC/MCSymbol.h b/include/llvm/MC/MCSymbol.h index 085f765..06f50ae 100644 --- a/include/llvm/MC/MCSymbol.h +++ b/include/llvm/MC/MCSymbol.h @@ -13,20 +13,19 @@ #include <string> namespace llvm { - class MCAtom; - class MCSymbol { - MCAtom *Atom; + MCSection *Section; std::string Name; unsigned IsTemporary : 1; public: - MCSymbol(MCAtom *_Atom, const char *_Name, bool _IsTemporary) - : Atom(_Atom), Name(_Name), IsTemporary(_IsTemporary) {} + MCSymbol(const char *_Name, bool _IsTemporary) + : Section(0), Name(_Name), IsTemporary(_IsTemporary) {} - MCAtom *getAtom() { return Atom; } + MCSection *getSection() const { return Section; } + void setSection(MCSection *Value) { Section = Value; } - const std::string &getName() { return Name; } + const std::string &getName() const { return Name; } }; } // end namespace llvm |