forked from OSchip/llvm-project
Eliminate some redundant newlines in asm output.
llvm-svn: 37574
This commit is contained in:
parent
40f775bf67
commit
3a8e2a8b2f
|
@ -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.
|
||||
|
|
|
@ -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"),
|
||||
|
|
|
@ -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";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -307,7 +307,6 @@ bool X86SharedAsmPrinter::doFinalization(Module &M) {
|
|||
ExtWeakSymbols.insert(GV);
|
||||
|
||||
EmitGlobalConstant(C);
|
||||
O << '\n';
|
||||
}
|
||||
|
||||
// Output linker support code for dllexported globals
|
||||
|
|
Loading…
Reference in New Issue