From 24a3fee9f3ff6cef6fe471ab6f0a7ba9ac001faf Mon Sep 17 00:00:00 2001 From: David Terei Date: Fri, 18 Jun 2010 09:32:05 +0000 Subject: Add support of TNTC to llvm backend We do this through a gnu as feature called subsections, where you can put data/code into a numbered subsection and those subsections will be joined together in descending order by gas at compile time. --- compiler/llvmGen/Llvm/AbsSyn.hs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'compiler/llvmGen/Llvm/AbsSyn.hs') diff --git a/compiler/llvmGen/Llvm/AbsSyn.hs b/compiler/llvmGen/Llvm/AbsSyn.hs index 1b8527b31f..9c255ab7df 100644 --- a/compiler/llvmGen/Llvm/AbsSyn.hs +++ b/compiler/llvmGen/Llvm/AbsSyn.hs @@ -44,13 +44,16 @@ data LlvmModule = LlvmModule { -- | An LLVM Function data LlvmFunction = LlvmFunction { -- | The signature of this declared function. - funcDecl :: LlvmFunctionDecl, + funcDecl :: LlvmFunctionDecl, -- | The function attributes. - funcAttrs :: [LlvmFuncAttr], + funcAttrs :: [LlvmFuncAttr], + + -- | The section to put the function into, + funcSect :: LMSection, -- | The body of the functions. - funcBody :: LlvmBlocks + funcBody :: LlvmBlocks } type LlvmFunctions = [LlvmFunction] -- cgit v1.2.1