mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 05:22:04 +00:00
add llvm codegen support for -ffunction-sections and -fdata-sections,
patch by Sylvere Teissier! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101106 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -197,7 +197,14 @@ EnableStrongPHIElim(cl::Hidden, "strong-phi-elim",
|
||||
cl::desc("Use strong PHI elimination."),
|
||||
cl::location(StrongPHIElim),
|
||||
cl::init(false));
|
||||
|
||||
static cl::opt<bool>
|
||||
DataSections("fdata-sections",
|
||||
cl::desc("Emit data into separate sections"),
|
||||
cl::init(false));
|
||||
static cl::opt<bool>
|
||||
FunctionSections("ffunction-sections",
|
||||
cl::desc("Emit functions into separate sections"),
|
||||
cl::init(false));
|
||||
//---------------------------------------------------------------------------
|
||||
// TargetMachine Class
|
||||
//
|
||||
@@ -244,6 +251,22 @@ void TargetMachine::setAsmVerbosityDefault(bool V) {
|
||||
AsmVerbosityDefault = V;
|
||||
}
|
||||
|
||||
bool TargetMachine::getFunctionSections() {
|
||||
return FunctionSections;
|
||||
}
|
||||
|
||||
bool TargetMachine::getDataSections() {
|
||||
return DataSections;
|
||||
}
|
||||
|
||||
void TargetMachine::setFunctionSections(bool V) {
|
||||
FunctionSections = V;
|
||||
}
|
||||
|
||||
void TargetMachine::setDataSections(bool V) {
|
||||
DataSections = V;
|
||||
}
|
||||
|
||||
namespace llvm {
|
||||
/// LessPreciseFPMAD - This flag return true when -enable-fp-mad option
|
||||
/// is specified on the command line. When this flag is off(default), the
|
||||
|
||||
Reference in New Issue
Block a user