mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
Unbreaking static ctors patch.
Defaulting second arguments of SwitchTo*Section, this should make things somehow clearer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31306 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -79,7 +79,7 @@ namespace llvm {
|
|||||||
///
|
///
|
||||||
/// This method is used when about to emit executable code.
|
/// This method is used when about to emit executable code.
|
||||||
///
|
///
|
||||||
void SwitchToTextSection(const char *NewSection, const GlobalValue *GV);
|
void SwitchToTextSection(const char *NewSection, const GlobalValue *GV = NULL);
|
||||||
|
|
||||||
/// SwitchToDataSection - Switch to the specified section of the executable
|
/// SwitchToDataSection - Switch to the specified section of the executable
|
||||||
/// if we are not already in it! If GV is non-null and if the global has an
|
/// if we are not already in it! If GV is non-null and if the global has an
|
||||||
@@ -93,7 +93,7 @@ namespace llvm {
|
|||||||
/// is the same as the SwitchToTextSection method, but not all assemblers
|
/// is the same as the SwitchToTextSection method, but not all assemblers
|
||||||
/// are the same.
|
/// are the same.
|
||||||
///
|
///
|
||||||
void SwitchToDataSection(const char *NewSection, const GlobalValue *GV);
|
void SwitchToDataSection(const char *NewSection, const GlobalValue *GV = NULL);
|
||||||
|
|
||||||
/// getGlobalLinkName - Returns the asm/link name of of the specified
|
/// getGlobalLinkName - Returns the asm/link name of of the specified
|
||||||
/// global variable. Should be overridden by each target asm printer to
|
/// global variable. Should be overridden by each target asm printer to
|
||||||
|
@@ -229,7 +229,7 @@ bool X86SharedAsmPrinter::doFinalization(Module &M) {
|
|||||||
SectionName += ",\"aw\",@progbits";
|
SectionName += ",\"aw\",@progbits";
|
||||||
}
|
}
|
||||||
|
|
||||||
SwitchToDataSection(SectionName.c_str(), I);
|
SwitchToDataSection(SectionName.c_str());
|
||||||
} else {
|
} else {
|
||||||
SwitchToDataSection(TAI->getDataSection(), I);
|
SwitchToDataSection(TAI->getDataSection(), I);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user