summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCContext.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-07-31 17:02:00 +0000
committerChris Lattner <sabre@nondot.org>2009-07-31 17:02:00 +0000
commitc10132aa79fd7fed65b86288fa92abb172ce83d2 (patch)
tree4f8f244cf1e16d8a0159e520ffb020e71d997413 /llvm/lib/MC/MCContext.cpp
parent4571a4a76050acf5cd59c9cb47e7ee40d7224586 (diff)
downloadbcm5719-llvm-c10132aa79fd7fed65b86288fa92abb172ce83d2.tar.gz
bcm5719-llvm-c10132aa79fd7fed65b86288fa92abb172ce83d2.zip
split MCSection stuff out to its own .cpp file, add a new
MCSectionWithKind subclass of MCSection. llvm-svn: 77684
Diffstat (limited to 'llvm/lib/MC/MCContext.cpp')
-rw-r--r--llvm/lib/MC/MCContext.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/llvm/lib/MC/MCContext.cpp b/llvm/lib/MC/MCContext.cpp
index 5f3f1251696..e6fb5c8809b 100644
--- a/llvm/lib/MC/MCContext.cpp
+++ b/llvm/lib/MC/MCContext.cpp
@@ -25,18 +25,6 @@ MCSection *MCContext::GetSection(const StringRef &Name) const {
return I != Sections.end() ? I->second : 0;
}
-
-MCSection::MCSection(const StringRef &_Name, MCContext &Ctx) : Name(_Name) {
- MCSection *&Entry = Ctx.Sections[Name];
- assert(Entry == 0 && "Multiple sections with the same name created");
- Entry = this;
-}
-
-MCSection *MCSection::Create(const StringRef &Name, MCContext &Ctx) {
- return new (Ctx) MCSection(Name, Ctx);
-}
-
-
MCSymbol *MCContext::CreateSymbol(const StringRef &Name) {
assert(Name[0] != '\0' && "Normal symbols cannot be unnamed!");
OpenPOWER on IntegriCloud