summaryrefslogtreecommitdiffstats
path: root/lib/MC/MCContext.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-06-24 01:03:06 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-06-24 01:03:06 +0000
commita11af531ec48ad84f790b9511f003ac5c934a999 (patch)
tree263ca3827523dda5ae497739709ca967f38c08ba /lib/MC/MCContext.cpp
parentfd6325cbb23935a9c05b96e9bbfa978565029f2a (diff)
downloadexternal_llvm-a11af531ec48ad84f790b9511f003ac5c934a999.zip
external_llvm-a11af531ec48ad84f790b9511f003ac5c934a999.tar.gz
external_llvm-a11af531ec48ad84f790b9511f003ac5c934a999.tar.bz2
Start MCAsmStreamer implementation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74044 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCContext.cpp')
-rw-r--r--lib/MC/MCContext.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/MC/MCContext.cpp b/lib/MC/MCContext.cpp
index be80523..cad0d56 100644
--- a/lib/MC/MCContext.cpp
+++ b/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 {