summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-05-09 05:13:34 +0000
committerChris Lattner <sabre@nondot.org>2006-05-09 05:13:34 +0000
commitc0f0dfa56fa000304e45d0ce4b6e48a61fa51b06 (patch)
tree68030031bb780039ec2889cb2c11609dd99f1e8c /llvm/lib/CodeGen/AsmPrinter.cpp
parentd0201946ad6fb1ca1a0067bd75896ba347732eb0 (diff)
downloadbcm5719-llvm-c0f0dfa56fa000304e45d0ce4b6e48a61fa51b06.tar.gz
bcm5719-llvm-c0f0dfa56fa000304e45d0ce4b6e48a61fa51b06.zip
The MASM asmprinter has been fixed, these hacks are no longer needed.
llvm-svn: 28186
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter.cpp22
1 files changed, 2 insertions, 20 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter.cpp
index 5b44c9ca5d3..242a4fbbd04 100644
--- a/llvm/lib/CodeGen/AsmPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter.cpp
@@ -70,19 +70,10 @@ void AsmPrinter::SwitchToTextSection(const char *NewSection,
// sections.
if (MLSections) {
- if (*NewSection == 0) {
- // Simply end the current section, if any.
- if (!CurrentSection.empty()) {
- O << CurrentSection << "\tends\n\n";
- CurrentSection.clear();
- }
- return;
- }
-
if (GV && GV->hasSection())
NS = GV->getSection();
else
- NS = "_text";
+ NS = NewSection;
if (CurrentSection != NS) {
if (!CurrentSection.empty())
@@ -115,19 +106,10 @@ void AsmPrinter::SwitchToDataSection(const char *NewSection,
// sections.
if (MLSections) {
- if (*NewSection == 0) {
- // Simply end the current section, if any.
- if (!CurrentSection.empty()) {
- O << CurrentSection << "\tends\n\n";
- CurrentSection.clear();
- }
- return;
- }
-
if (GV && GV->hasSection())
NS = GV->getSection();
else
- NS = "_data";
+ NS = NewSection;
if (CurrentSection != NS) {
if (!CurrentSection.empty())
OpenPOWER on IntegriCloud