aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2007-06-14 15:00:27 +0000
committerDan Gohman <gohman@apple.com>2007-06-14 15:00:27 +0000
commitaf67ea73184006b4f8a86ceb04fe318aad8b6558 (patch)
tree482f0f90fa2182701681b8bb17387edd316abb4b
parent41783f0bc7cc9618b55fb0e7c4438b35dcd7194c (diff)
downloadexternal_llvm-af67ea73184006b4f8a86ceb04fe318aad8b6558.zip
external_llvm-af67ea73184006b4f8a86ceb04fe318aad8b6558.tar.gz
external_llvm-af67ea73184006b4f8a86ceb04fe318aad8b6558.tar.bz2
Eliminate some redundant newlines in asm output.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37574 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Target/TargetAsmInfo.h4
-rw-r--r--lib/Target/TargetAsmInfo.cpp4
-rwxr-xr-xlib/Target/X86/X86ATTAsmPrinter.cpp4
-rw-r--r--lib/Target/X86/X86AsmPrinter.cpp1
4 files changed, 6 insertions, 7 deletions
diff --git a/include/llvm/Target/TargetAsmInfo.h b/include/llvm/Target/TargetAsmInfo.h
index 7e96c09..4e6d3b9 100644
--- a/include/llvm/Target/TargetAsmInfo.h
+++ b/include/llvm/Target/TargetAsmInfo.h
@@ -178,12 +178,12 @@ namespace llvm {
/// ConstantPoolSection - This is the section that we SwitchToSection right
/// before emitting the constant pool for a function.
- const char *ConstantPoolSection; // Defaults to "\t.section .rodata\n"
+ const char *ConstantPoolSection; // Defaults to "\t.section .rodata"
/// JumpTableDataSection - This is the section that we SwitchToSection right
/// before emitting the jump tables for a function when the relocation model
/// is not PIC.
- const char *JumpTableDataSection; // Defaults to "\t.section .rodata\n"
+ const char *JumpTableDataSection; // Defaults to "\t.section .rodata"
/// JumpTableDirective - if non-null, the directive to emit before a jump
/// table.
diff --git a/lib/Target/TargetAsmInfo.cpp b/lib/Target/TargetAsmInfo.cpp
index 7918678..df7a2ec 100644
--- a/lib/Target/TargetAsmInfo.cpp
+++ b/lib/Target/TargetAsmInfo.cpp
@@ -55,8 +55,8 @@ TargetAsmInfo::TargetAsmInfo() :
TextSectionStartSuffix(""),
DataSectionStartSuffix(""),
SectionEndDirectiveSuffix(0),
- ConstantPoolSection("\t.section .rodata\n"),
- JumpTableDataSection("\t.section .rodata\n"),
+ ConstantPoolSection("\t.section .rodata"),
+ JumpTableDataSection("\t.section .rodata"),
JumpTableDirective(0),
CStringSection(0),
StaticCtorsSection("\t.section .ctors,\"aw\",@progbits"),
diff --git a/lib/Target/X86/X86ATTAsmPrinter.cpp b/lib/Target/X86/X86ATTAsmPrinter.cpp
index e3bb967..970f046 100755
--- a/lib/Target/X86/X86ATTAsmPrinter.cpp
+++ b/lib/Target/X86/X86ATTAsmPrinter.cpp
@@ -59,10 +59,10 @@ std::string X86ATTAsmPrinter::getSectionForFunction(const Function &F) const {
if (Subtarget->isTargetDarwin()) {
return ".section __TEXT,__textcoal_nt,coalesced,pure_instructions";
} else if (Subtarget->isTargetCygMing()) {
- return "\t.section\t.text$linkonce." + CurrentFnName + ",\"ax\"\n";
+ return "\t.section\t.text$linkonce." + CurrentFnName + ",\"ax\"";
} else {
return "\t.section\t.llvm.linkonce.t." + CurrentFnName +
- ",\"ax\",@progbits\n";
+ ",\"ax\",@progbits";
}
}
}
diff --git a/lib/Target/X86/X86AsmPrinter.cpp b/lib/Target/X86/X86AsmPrinter.cpp
index 3a5889d..40b633f 100644
--- a/lib/Target/X86/X86AsmPrinter.cpp
+++ b/lib/Target/X86/X86AsmPrinter.cpp
@@ -307,7 +307,6 @@ bool X86SharedAsmPrinter::doFinalization(Module &M) {
ExtWeakSymbols.insert(GV);
EmitGlobalConstant(C);
- O << '\n';
}
// Output linker support code for dllexported globals