diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2009-06-24 01:03:06 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2009-06-24 01:03:06 +0000 |
| commit | 9faf273fc45bf0397662c2a08c5f932d6611aab6 (patch) | |
| tree | a3d2764f16374912c219b9264e054f2a7365e301 /llvm/lib/MC/MCContext.cpp | |
| parent | 9ef415edf27215b97b89782c06a68d78bff841a6 (diff) | |
| download | bcm5719-llvm-9faf273fc45bf0397662c2a08c5f932d6611aab6.tar.gz bcm5719-llvm-9faf273fc45bf0397662c2a08c5f932d6611aab6.zip | |
Start MCAsmStreamer implementation.
llvm-svn: 74044
Diffstat (limited to 'llvm/lib/MC/MCContext.cpp')
| -rw-r--r-- | llvm/lib/MC/MCContext.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/MC/MCContext.cpp b/llvm/lib/MC/MCContext.cpp index be805232e4d..cad0d569902 100644 --- a/llvm/lib/MC/MCContext.cpp +++ b/llvm/lib/MC/MCContext.cpp @@ -26,13 +26,13 @@ MCSection *MCContext::GetSection(const char *Name) { MCSection *&Entry = Sections[Name]; if (!Entry) - Entry = new (this) MCSection(Name); + Entry = new (*this) MCSection(Name); return Entry; } MCAtom *MCContext::CreateAtom(MCSection *Section) { - return new (this) MCAtom(Section); + return new (*this) MCAtom(Section); } MCSymbol *MCContext::CreateSymbol(MCAtom *Atom, const char *Name) { @@ -41,18 +41,18 @@ MCSymbol *MCContext::CreateSymbol(MCAtom *Atom, const char *Name) { // Create and bind the symbol, and ensure that names are unique. MCSymbol *&Entry = Symbols[Name]; assert(!Entry && "Duplicate symbol definition!"); - return Entry = new (this) MCSymbol(Atom, Name, false); + return Entry = new (*this) MCSymbol(Atom, Name, false); } MCSymbol *MCContext::CreateTemporarySymbol(MCAtom *Atom, const char *Name) { // If unnamed, just create a symbol. if (Name[0] == '\0') - new (this) MCSymbol(Atom, "", true); + new (*this) MCSymbol(Atom, "", true); // Otherwise create as usual. MCSymbol *&Entry = Symbols[Name]; assert(!Entry && "Duplicate symbol definition!"); - return Entry = new (this) MCSymbol(Atom, Name, true); + return Entry = new (*this) MCSymbol(Atom, Name, true); } MCSymbol *MCContext::LookupSymbol(const char *Name) const { |

