aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-04-13 00:36:43 +0000
committerChris Lattner <sabre@nondot.org>2010-04-13 00:36:43 +0000
commit43ac721e3b35341e7cf59d5982ad702ca8d27433 (patch)
tree434695966d6d1bef31e8a9b35301f07b4cc96154 /include
parent18d57661f3b5a30526e63a4de429db1d362fd6ab (diff)
downloadexternal_llvm-43ac721e3b35341e7cf59d5982ad702ca8d27433.zip
external_llvm-43ac721e3b35341e7cf59d5982ad702ca8d27433.tar.gz
external_llvm-43ac721e3b35341e7cf59d5982ad702ca8d27433.tar.bz2
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
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Target/TargetMachine.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetMachine.h b/include/llvm/Target/TargetMachine.h
index d1d665f..6697b73 100644
--- a/include/llvm/Target/TargetMachine.h
+++ b/include/llvm/Target/TargetMachine.h
@@ -171,6 +171,21 @@ public:
/// is false.
static void setAsmVerbosityDefault(bool);
+ /// getDataSections - Return true if data objects should be emitted into their
+ /// own section, corresponds to -fdata-sections.
+ static bool getDataSections();
+
+ /// getFunctionSections - Return true if functions should be emitted into
+ /// their own section, corresponding to -ffunction-sections.
+ static bool getFunctionSections();
+
+ /// setDataSections - Set if the data are emit into separate sections.
+ static void setDataSections(bool);
+
+ /// setFunctionSections - Set if the functions are emit into separate
+ /// sections.
+ static void setFunctionSections(bool);
+
/// CodeGenFileType - These enums are meant to be passed into
/// addPassesToEmitFile to indicate what type of file to emit, and returned by
/// it to indicate what type of file could actually be made.